Search Results for

    Show / Hide Table of Contents

    Class XbimGeometryData

    Inheritance
    System.Object
    XbimGeometryData
    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 XbimGeometryData

    Constructors

    | Improve this Doc View Source

    XbimGeometryData(Int32, Int32, XbimGeometryType, Int16, Byte[], Byte[], Int32)

    The constructs an XbimGeoemtryData object, the geometry hash is calculated from the array of shape data

    Declaration
    public XbimGeometryData(int geometrylabel, int productLabel, XbimGeometryType geomType, short ifcTypeId, byte[] shape, byte[] transform, int styleLabel)
    Parameters
    Type Name Description
    System.Int32 geometrylabel
    System.Int32 productLabel
    XbimGeometryType geomType
    System.Int16 ifcTypeId
    System.Byte[] shape
    System.Byte[] transform
    System.Int32 styleLabel
    | Improve this Doc View Source

    XbimGeometryData(Int32, Int32, XbimGeometryType, Int16, Byte[], Byte[], Int32, Int32, Int32)

    Declaration
    public XbimGeometryData(int geometrylabel, int productLabel, XbimGeometryType geomType, short ifcTypeId, byte[] shape, byte[] dataArray2, int geometryHash, int styleLabel, int counter)
    Parameters
    Type Name Description
    System.Int32 geometrylabel
    System.Int32 productLabel
    XbimGeometryType geomType
    System.Int16 ifcTypeId
    System.Byte[] shape
    System.Byte[] dataArray2
    System.Int32 geometryHash
    System.Int32 styleLabel
    System.Int32 counter

    Fields

    | Improve this Doc View Source

    Counter

    Declaration
    public readonly int Counter
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    DataArray2

    Declaration
    public readonly byte[] DataArray2
    Field Value
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    GeometryHash

    Declaration
    public readonly int GeometryHash
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    GeometryLabel

    Declaration
    public readonly int GeometryLabel
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    GeometryType

    Declaration
    public readonly XbimGeometryType GeometryType
    Field Value
    Type Description
    XbimGeometryType
    | Improve this Doc View Source

    IfcProductLabel

    Declaration
    public readonly int IfcProductLabel
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    IfcTypeId

    Declaration
    public readonly short IfcTypeId
    Field Value
    Type Description
    System.Int16
    | Improve this Doc View Source

    ShapeData

    Declaration
    public readonly byte[] ShapeData
    Field Value
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    StyleLabel

    Declaration
    public readonly int StyleLabel
    Field Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    GenerateGeometryHash(Byte[])

    Generates a FNV hash for any array of bytes

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

    IsGeometryEqual(XbimGeometryData)

    Returns true if the two geometries have identical shape data

    Declaration
    public bool IsGeometryEqual(XbimGeometryData to)
    Parameters
    Type Name Description
    XbimGeometryData to
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    TransformBy(XbimMatrix3D)

    Transforms the shape data of the geometry by the matrix NB This is a deprecated method and will be removed for the latest geometry support and is only used in first geometry implementation

    Declaration
    [Obsolete("This method should not be used and is marked for deletion", false)]
    public XbimGeometryData TransformBy(XbimMatrix3D matrix)
    Parameters
    Type Name Description
    XbimMatrix3D matrix
    Returns
    Type Description
    XbimGeometryData
    | Improve this Doc View Source

    TriangulatedFaceSet()

    Generates a triangulated face set from the binary shape data

    Declaration
    public XbimShapeTriangulation TriangulatedFaceSet()
    Returns
    Type Description
    XbimShapeTriangulation
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim