Bitbybit Docs
    Preparing search index...

    Class DecomposedFaceBuffersDto (Inputs.OCCT)

    One face of a DecomposedMeshBuffersDto: the numbers of a DecomposedFaceDto in single-precision typed arrays, each a view into a buffer the whole mesh shares, so it crosses threads uncopied.

    Index

    Constructors

    Properties

    faceIndex: number

    The position of the face in the shape, counting from 0 in the order shapes.face.getFaces uses.

    vertexCoord: Float32Array

    The vertex positions, x, y and z one vertex after another.

    normalCoord: Float32Array

    The vertex normals, x, y and z one vertex after another.

    triIndexes: Uint32Array

    The triangles as vertex indexes into this face's vertices, three per triangle.

    numberOfTriangles: number

    How many triangles the face was cut into.

    uvs: Float32Array

    The texture coordinates, u and v one vertex after another; empty when the face has none.

    centerPoint: Bit.Inputs.Base.Point3

    A point in the middle of the face's parameter range, on the surface, or null for a face with no surface to place it on.

    centerNormal: Vector3

    The surface normal at centerPoint, or null where centerPoint is.

    area?: number

    The surface area of the face in square model units; present only with computeMetadata.

    true

    centerOfMass?: Bit.Inputs.Base.Point3

    The center of mass of the face; present only with computeMetadata.

    true

    surfaceType?: string

    The kind of surface the face lies on, such as Plane, Cylinder or BSplineSurface; present only with computeMetadata.

    true

    tolerance?: number

    The geometric tolerance of the face in model units; present only with computeMetadata.

    true

    adjacentFaces?: number[]

    The indexes of the faces that share an edge with this one; present only with computeMetadata.

    true

    faceUid?: number

    The face's stable id in the shape's graph, or -1 when unavailable; present only with computeMetadata.

    true

    analysisValues?: Float32Array<ArrayBufferLike>

    The surface analysis value at each vertex in vertexCoord order, NaN where undefined; present only with surfaceAnalysis.

    true