Search Results for

    Show / Hide Table of Contents

    Class XbimShapeTriangulation

    represents a 3d mesh

    Inheritance
    System.Object
    XbimShapeTriangulation
    Implements
    IXbimTriangulatedFaceSet
    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.Common.Geometry
    Assembly: Xbim.Common.dll
    Syntax
    public class XbimShapeTriangulation : IXbimTriangulatedFaceSet

    Constructors

    | Improve this Doc View Source

    XbimShapeTriangulation(List<XbimPoint3D>, List<XbimFaceTriangulation>, Byte)

    Declaration
    public XbimShapeTriangulation(List<XbimPoint3D> vertices, List<XbimFaceTriangulation> faces, byte version)
    Parameters
    Type Name Description
    System.Collections.Generic.List<XbimPoint3D> vertices
    System.Collections.Generic.List<XbimFaceTriangulation> faces
    System.Byte version

    Properties

    | Improve this Doc View Source

    Faces

    Declaration
    public IList<XbimFaceTriangulation> Faces { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<XbimFaceTriangulation>
    | Improve this Doc View Source

    Version

    Declaration
    public byte Version { get; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    Vertices

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

    Methods

    | Improve this Doc View Source

    ToPointsWithNormalsAndIndices(out List<Single[]>, out List<Int32>)

    Exports the data to positions and indices, trying to remove duplicates in positions as much as possible.

    Declaration
    public void ToPointsWithNormalsAndIndices(out List<float[]> positions, out List<int> indices)
    Parameters
    Type Name Description
    System.Collections.Generic.List<System.Single[]> positions

    The destination position list, [0,1,2] for position [3,4,5] for normal.

    System.Collections.Generic.List<System.Int32> indices

    the destination of indices pointing to positions.

    | Improve this Doc View Source

    Transform(XbimMatrix3D)

    Declaration
    public XbimShapeTriangulation Transform(XbimMatrix3D matrix3D)
    Parameters
    Type Name Description
    XbimMatrix3D matrix3D
    Returns
    Type Description
    XbimShapeTriangulation
    | Improve this Doc View Source

    TriangleCount(Byte[])

    Returns the number of triangles in the XbimShapeTriangulation data

    Declaration
    public static int TriangleCount(byte[] triangulationData)
    Parameters
    Type Name Description
    System.Byte[] triangulationData
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    VerticesCount(Byte[])

    Returns the number of vertices in the XbimShapeTriangulation data

    Declaration
    public static int VerticesCount(byte[] triangulationData)
    Parameters
    Type Name Description
    System.Byte[] triangulationData
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Write(BinaryWriter)

    Declaration
    public void Write(BinaryWriter bw)
    Parameters
    Type Name Description
    System.IO.BinaryWriter bw

    Implements

    IXbimTriangulatedFaceSet
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim