Search Results for

    Show / Hide Table of Contents

    Class MeshExtrudeFaces

    Extrude a subset of faces of Mesh. Steps are: 1) separate subset from neighbouring triangles 2) offset them 3) connect original and offset edges (now boundary edges) with a triangle strip

    Caveats:

    • not sure it works for multiple regions?
    • boundary vertices are currently attached to offset region, rather than also duplicated and then connected w/ strip [TODO] implement this behavior
    Inheritance
    Object
    MeshExtrudeFaces
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public class MeshExtrudeFaces

    Constructors

    MeshExtrudeFaces(DMesh3, IEnumerable<Int32>)

    Declaration
    public MeshExtrudeFaces(DMesh3 mesh, IEnumerable<int> triangles)
    Parameters
    Type Name Description
    DMesh3 mesh
    IEnumerable<Int32> triangles

    MeshExtrudeFaces(DMesh3, Int32[], Boolean)

    Declaration
    public MeshExtrudeFaces(DMesh3 mesh, int[] triangles, bool bForceCopyArray = false)
    Parameters
    Type Name Description
    DMesh3 mesh
    Int32[] triangles
    Boolean bForceCopyArray

    Fields

    EdgePairs

    Declaration
    public List<Index2i> EdgePairs
    Field Value
    Type Description
    List<Index2i>

    ExtrudedPositionF

    Declaration
    public Func<Vector3d, Vector3f, int, Vector3d> ExtrudedPositionF
    Field Value
    Type Description
    Func<Vector3d, Vector3f, Int32, Vector3d>

    ExtrudeVertices

    Declaration
    public MeshVertexSelection ExtrudeVertices
    Field Value
    Type Description
    MeshVertexSelection

    Group

    Declaration
    public SetGroupBehavior Group
    Field Value
    Type Description
    SetGroupBehavior

    JoinGroupID

    Declaration
    public int JoinGroupID
    Field Value
    Type Description
    Int32

    JoinIncomplete

    Declaration
    public bool JoinIncomplete
    Field Value
    Type Description
    Boolean

    JoinTriangles

    Declaration
    public int[] JoinTriangles
    Field Value
    Type Description
    Int32[]

    Mesh

    Declaration
    public DMesh3 Mesh
    Field Value
    Type Description
    DMesh3

    Triangles

    Declaration
    public int[] Triangles
    Field Value
    Type Description
    Int32[]

    Methods

    Extrude()

    Apply the extrustion operation to input Mesh. Will return false if operation is not completed. However changes are not backed out, so if false is returned, input Mesh is in undefined state (generally means there are some holes)

    Declaration
    public virtual bool Extrude()
    Returns
    Type Description
    Boolean

    Validate()

    Declaration
    public virtual ValidationStatus Validate()
    Returns
    Type Description
    ValidationStatus
    In This Article
    Back to top ViRGIS VR GIS