Class XbimShapeTriangulation
represents a 3d mesh
Inheritance
System.Object
XbimShapeTriangulation
Implements
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 SourceXbimShapeTriangulation(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 SourceFaces
Declaration
public IList<XbimFaceTriangulation> Faces { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<XbimFaceTriangulation> |
Version
Declaration
public byte Version { get; }
Property Value
Type | Description |
---|---|
System.Byte |
Vertices
Declaration
public IList<XbimPoint3D> Vertices { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<XbimPoint3D> |
Methods
| Improve this Doc View SourceToPointsWithNormalsAndIndices(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. |
Transform(XbimMatrix3D)
Declaration
public XbimShapeTriangulation Transform(XbimMatrix3D matrix3D)
Parameters
Type | Name | Description |
---|---|---|
XbimMatrix3D | matrix3D |
Returns
Type | Description |
---|---|
XbimShapeTriangulation |
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 |
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 |
Write(BinaryWriter)
Declaration
public void Write(BinaryWriter bw)
Parameters
Type | Name | Description |
---|---|---|
System.IO.BinaryWriter | bw |