UEditorEngine::bspBrushCSG

Performs any CSG operation between the brush and the world.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h

Include

#include "Editor/EditorEngine.h"

Source

/Engine/Source/Editor/UnrealEd/Private/EditorBsp.cpp

Syntax

virtual int32 bspBrushCSG
(
    ABrush * Actor,
    UModel * Model,
    uint32 PolyFlags,
    EBrushType BrushType,
    ECsgOper CSGOper,
    bool bBuildBounds,
    bool bMergePolys,
    bool bReplaceNULLMaterialRefs,
    bool bShowProgressBar
)

Remarks

Performs any CSG operation between the brush and the world.

Returns

0 if nothing happened, 1 if the operation was error-free, or 1+N if N CSG errors occurred.

Parameters

Parameter

Description

Actor

The brush actor to apply.

Model

The model to apply the CSG operation to; typically the world's model.

PolyFlags

PolyFlags to set on brush's polys.

BrushType

The type of brush.

CSGOper

The CSG operation to perform.

bBuildBounds

If true, updates bounding volumes on Model for CSG_Add or CSG_Subtract operations.

bMergePolys

If true, coplanar polygons are merged for CSG_Intersect or CSG_Deintersect operations.

bReplaceNULLMaterialRefs

If true, replace NULL material references with a reference to the GB-selected material.

bShowProgressBar

If true, display progress bar for complex brushes

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss