Enfusion Script API
Loading...
Searching...
No Matches
ShapeUtils Interface Reference

Static Public Member Functions

static proto ref Shape CreateShapeFromMesh (notnull MeshObject mo, int lodIndex, string meshName, int shapeColor, ShapeFlags flags)
 Creates a shape from a given mesh object.
 
static proto ref Shape CreateShapeFromMeshByIndex (notnull MeshObject mo, int lodIndex, int meshIndex, int shapeColor, ShapeFlags flags)
 Creates a shape from a given mesh object.
 
static proto ref Shape CreateShapeFromXOB (ResourceName xobFilePath, int lodIndex, string meshName, int shapeColor, ShapeFlags flags)
 Creates a shape from a given mesh object.
 

Member Function Documentation

◆ CreateShapeFromMesh()

static proto ref Shape ShapeUtils.CreateShapeFromMesh ( notnull MeshObject mo,
int lodIndex,
string meshName,
int shapeColor,
ShapeFlags flags )
static

Creates a shape from a given mesh object.

Parameters
moPointer to the MeshObject from which the shape will be created.
lodIndexLevel of detail index to be used for the shape.
meshNameThe name of the mesh.
shapeColorThe color of the shape
flagsFlags that determine the properties and behavior of the shape.

◆ CreateShapeFromMeshByIndex()

static proto ref Shape ShapeUtils.CreateShapeFromMeshByIndex ( notnull MeshObject mo,
int lodIndex,
int meshIndex,
int shapeColor,
ShapeFlags flags )
static

Creates a shape from a given mesh object.

Parameters
moPointer to the MeshObject from which the shape will be created.
lodIndexLevel of detail index to be used for the shape.
meshIndexIndex of the mesh.
shapeColorThe color of the shape
flagsFlags that determine the properties and behavior of the shape.

◆ CreateShapeFromXOB()

static proto ref Shape ShapeUtils.CreateShapeFromXOB ( ResourceName xobFilePath,
int lodIndex,
string meshName,
int shapeColor,
ShapeFlags flags )
static

Creates a shape from a given mesh object.

Parameters
xobFilePathResourceName of the MeshObject from which the shape will be created.
lodIndexLevel of detail index to be used for the shape.
meshNameName of the mesh.
shapeColorThe color of the shape
flagsFlags that determine the properties and behavior of the shape.

The documentation for this interface was generated from the following file: