MeshExtruder

public class MeshExtruder : IDisposable
Extrudes a mesh and provides preview

Constructors

MeshExtruder

#Since v6.3
public MeshExtruder(Mesh inputMesh, IEnumerable<ComponentIndex> componentIndices)
Construct object to extrude given mesh faces, edges and ngons.
inputMesh (Mesh)Mesh to use as starting point. Will not be modified.
componentIndices (IEnumerable<ComponentIndex>)Mesh faces, edges and ngons to extrude.

Finalizer

~MeshExtruder

#
~MeshExtruder()
Destructor

Properties

EdgeBasedUVN

#Since v6.4
public bool EdgeBasedUVN { get; set; }
Edge based UVN defines UVN directions according to boundary edge directions

FaceDirectionMode

#Since v6.3
public MeshExtruderFaceDirectionMode FaceDirectionMode { get; set; }
Face direction mode determines how faces are oriented

KeepOriginalFaces

#Since v6.3
public bool KeepOriginalFaces { get; set; }
Whether or not to keep original faces.

PreviewLines

#Since v6.3
public Line[] PreviewLines { get; }
Gets Line objects to preview extruded mesh.

SurfaceParameterMode

#Since v6.3
public MeshExtruderParameterMode SurfaceParameterMode { get; set; }
Mode for creating surface parameters for extruded areas

TextureCoordinateMode

#Since v6.3
public MeshExtruderParameterMode TextureCoordinateMode { get; set; }
Mode for creating texture coordinates for extruded areas

Transform

#Since v6.3
public Transform Transform { get; set; }
Transform of extrusion

UVN

#Since v6.3
public bool UVN { get; set; }
Whether or not to perform extrude in UVN basis.

Methods

Dispose

#Since v6.3
public void Dispose()
Dispose of this object and any unmanaged memory associated with it.

ExtrudedMesh

#
public bool ExtrudedMesh(out Mesh extrudedMeshOut, out List<ComponentIndex> componentIndicesOut)
Creates new extruded mesh. Returns true if any edges or faces were extruded.
extrudedMeshOut (out Mesh)Extruded mesh
componentIndicesOut (out List<ComponentIndex>)Component indices of extruded faces and vertices

ExtrudedMesh

#Since v6.3
public bool ExtrudedMesh(out Mesh extrudedMeshOut)
Creates new extruded mesh. Returns true if any edges or faces were extruded.
extrudedMeshOut (out Mesh)Extruded mesh

GetWallFaces

#Since v6.16
public List<int> GetWallFaces()
Return list of faces that were added to connect transformed edges/faces to non-transformed edges/faces.
List of wall faces