Skip to main content

ContourAdjacency

View-independent contour adjacency for one mesh. Build once, query per view.

Index

Properties

doubleSided

doubleSided: Uint8Array<ArrayBufferLike>

1 where the face had an opposite-winding coincident duplicate removed by the dedup — a zero-thickness double-sided sheet. Its boundary edges are visible from BOTH sides.

edgeCount

edgeCount: number

edgeFaces

edgeFaces: Int32Array<ArrayBufferLike>

Adjacent face indices per edge, flat pairs — the first two incident faces; -1 in the second slot = open boundary. Edges with MORE than two incident faces keep their first two here and are flagged in nonManifold, so facing stays queryable for them.

edgeVertices

edgeVertices: Uint32Array<ArrayBufferLike>

Edge endpoint indices into positions, flat pairs [i0, j0, i1, j1, …].

faceCount

faceCount: number

faceNormals

faceNormals: Float64Array<ArrayBufferLike>

Per-face normals (flat xyz, not normalized — only the dot SIGN is consumed).

nonManifold

nonManifold: Uint8Array<ArrayBufferLike>

1 where the edge has three or more incident faces.

positions

positions: Float64Array<ArrayBufferLike>

Welded vertex positions (flat xyz).