Skip to content

Shapemetry API


Shapemetry API / LatticeOptions

Interface: LatticeOptions

Defined in: mesh/lattice.ts:304

Properties

offset

offset: number

Defined in: mesh/lattice.ts:306

Total tube thickness. Positive = thicker rim.


offsetFactor?

optional offsetFactor?: number

Defined in: mesh/lattice.ts:308

Offset bias along normal. -1 = inward, 0 = centered, 1 = outward.


offsetFactorVertexGroup?

optional offsetFactorVertexGroup?: number

Defined in: mesh/lattice.ts:310

Vertex-group factor (no vgroup support -> pass 0).


replaceOriginal?

optional replaceOriginal?: boolean

Defined in: mesh/lattice.ts:312

Remove original faces wireframed.


boundaryCaps?

optional boundaryCaps?: boolean

Defined in: mesh/lattice.ts:314

Build end-caps at boundary edges.


evenOffset?

optional evenOffset?: boolean

Defined in: mesh/lattice.ts:316

Even thickness at corners via shell_angle_to_dist.


relativeOffset?

optional relativeOffset?: boolean

Defined in: mesh/lattice.ts:318

Scale thickness per-vertex by mean edge length.


taggedFacesOnly?

optional taggedFacesOnly?: boolean

Defined in: mesh/lattice.ts:320

Process only faces with ELEM_TAG (skip untagged).


recomputeNormals?

optional recomputeNormals?: boolean

Defined in: mesh/lattice.ts:322

If true, recompute vertex normals from face normals first. Default true.