Bitbybit Docs
    Bereite Suchindex vor...

    Klasse DecomposedFaceDto (Inputs.OCCT)

    The triangulation of one face inside a DecomposedMeshDto: flat coordinate lists the way graphics libraries take them, plus optional facts about the face when computeMetadata was set.

    Index

    Konstruktoren

    Eigenschaften

    faceIndex: number

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

    normalCoord: number[]

    The vertex normals as a flat list of x, y, z triples, one per vertex.

    numberOfTriangles: number

    How many triangles the face was cut into.

    triIndexes: number[]

    The triangles as a flat list of vertex indexes, three per triangle.

    vertexCoord: number[]

    The vertex positions as a flat list of x, y, z triples.

    vertexCoordVec: Vector3[]

    The same vertex positions as a list of points.

    centerPoint: Point3

    A point in the middle of the face's parameter range, on the surface.

    centerNormal: Vector3

    The surface normal at centerPoint.

    uvs: number[]

    The texture coordinates as a flat list of u, v pairs, one per vertex.

    area?: number

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

    true

    centerOfMass?: 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