Search Results for

    Show / Hide Table of Contents

    Class XbimTriangulatedMesh

    Inheritance
    System.Object
    XbimTriangulatedMesh
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Xbim.Tessellator
    Assembly: Xbim.Tessellator.dll
    Syntax
    public class XbimTriangulatedMesh

    Constructors

    | Improve this Doc View Source

    XbimTriangulatedMesh(Int32, Single)

    Declaration
    public XbimTriangulatedMesh(int faceCount, float precision)
    Parameters
    Type Name Description
    System.Int32 faceCount
    System.Single precision

    Properties

    | Improve this Doc View Source

    BoundingBox

    Declaration
    public XbimRect3D BoundingBox { get; }
    Property Value
    Type Description
    XbimRect3D
    | Improve this Doc View Source

    Centroid

    Declaration
    public XbimPoint3D Centroid { get; }
    Property Value
    Type Description
    XbimPoint3D
    | Improve this Doc View Source

    Faces

    Declaration
    public Dictionary<int, List<XbimTriangleEdge[]>> Faces { get; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<System.Int32, System.Collections.Generic.List<XbimTriangleEdge[]>>
    | Improve this Doc View Source

    FaultyTriangles

    Declaration
    public List<XbimTriangleEdge[]> FaultyTriangles { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<XbimTriangleEdge[]>
    | Improve this Doc View Source

    TriangleCount

    Declaration
    public uint TriangleCount { get; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    Triangles

    Declaration
    public IEnumerable<XbimTriangulatedMesh.XbimTriangle> Triangles { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<XbimTriangulatedMesh.XbimTriangle>
    | Improve this Doc View Source

    VertexCount

    Declaration
    public uint VertexCount { get; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    Vertices

    Declaration
    public IEnumerable<Vec3> Vertices { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<Vec3>

    Methods

    | Improve this Doc View Source

    AddTriangle(Int32, Int32, Int32, Int32)

    Adds the triangle using the three ints as inidices into the vertext collection

    Declaration
    public void AddTriangle(int p1, int p2, int p3, int faceId)
    Parameters
    Type Name Description
    System.Int32 p1
    System.Int32 p2
    System.Int32 p3
    System.Int32 faceId
    | Improve this Doc View Source

    AddVertex(Vec3)

    Insets a vertex and returns the position in the list, removes duplicates

    Declaration
    public int AddVertex(Vec3 v)
    Parameters
    Type Name Description
    Vec3 v
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    AddVertex(Vec3, ref ContourVertex)

    Declaration
    public void AddVertex(Vec3 v, ref ContourVertex contourVertex)
    Parameters
    Type Name Description
    Vec3 v
    ContourVertex contourVertex
    | Improve this Doc View Source

    BalanceNormals()

    Declaration
    public void BalanceNormals()
    | Improve this Doc View Source

    ComputeTriangleNormal(XbimTriangleEdge[])

    Calculates the normal for a connected triangle edge, assumes the edge is part of a complete triangle and there are 3 triangle edges

    Declaration
    public bool ComputeTriangleNormal(XbimTriangleEdge[] edges)
    Parameters
    Type Name Description
    XbimTriangleEdge[] edges
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsFacingOutward(XbimTriangleEdge)

    Returns true if the triangle that contains the edge is facing away from the centroid of the mesh

    Declaration
    public bool IsFacingOutward(XbimTriangleEdge edge)
    Parameters
    Type Name Description
    XbimTriangleEdge edge
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    PointingOutwardFrom(XbimPoint3D)

    Declaration
    public XbimVector3D PointingOutwardFrom(XbimPoint3D point3D)
    Parameters
    Type Name Description
    XbimPoint3D point3D
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    TriangleNormal(XbimTriangleEdge)

    Returns the normal of the triangle that contains the specified edge

    Declaration
    public XbimVector3D TriangleNormal(XbimTriangleEdge edge)
    Parameters
    Type Name Description
    XbimTriangleEdge edge
    Returns
    Type Description
    XbimVector3D
    | Improve this Doc View Source

    UnifyFaceOrientation(Int32)

    Orientates edges to orientate in a uniform direction

    Declaration
    public void UnifyFaceOrientation(int entityLabel)
    Parameters
    Type Name Description
    System.Int32 entityLabel
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim