CutMultipleWithMultiplePlanes

Cut multiple Geometry groups inside a GeometryCollection with Planes, and add each cut cell back to the GeometryCollection as a new child of their source Geometry.

Windows
MacOS
Linux

References

Module

PlanarCut

Header

/Engine/Plugins/Experimental/PlanarCutPlugin/Source/PlanarCut/Public/PlanarCut.h

Include

#include "PlanarCut.h"

Source

/Engine/Plugins/Experimental/PlanarCutPlugin/Source/PlanarCut/Private/PlanarCut.cpp

Syntax

int32 CutMultipleWithMultiplePlanes
(
    const TArrayView< const FPlane > & Planes,
    FInternalSurfaceMaterials & InternalSurfaceMaterials,
    FGeometryCollection & Collection,
    const TArrayView< const int32 > & TransformIndices,
    double Grout,
    double CollisionSampleSpacing,
    const TOptional< FTransform > & TransformCollection,
    bool bSetDefaultInternalMaterialsFromCollection
)

Remarks

Cut multiple Geometry groups inside a GeometryCollection with Planes, and add each cut cell back to the GeometryCollection as a new child of their source Geometry. For geometries that would not be cut, nothing is added.

Returns

index of first new geometry in the Output GeometryCollection, or -1 if no geometry was added

Parameters

Parameter

Description

Planes

Defines the cutting planes and division of space

InternalSurfaceMaterials

Defines material properties for any added internal surfaces

Collection

The collection to be cut

TransformIndices

Which transform groups inside the collection to cut

Grout

Separation to leave between cutting cells

CollisionSampleSpacing

Target spacing between collision sample vertices

TransformCollection

Optional transform of the whole geometry collection; if unset, defaults to Identity

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