Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite8beb5604c

README.md

geometry.shared

For every edge of a geometry, the number of points that both of its ends have an edge to. An interior edge of a clean mesh shares exactly the two points opposite it in its two faces; one that shares more is pinched, and merging its ends would pinch the surface (geometry.decimate refuses such a collapse). Pairs of points are keyed as a * points + b, so the geometry holds fewer than 46341 points.

Inputs

  • geometry (Geometry). The geometry whose edges are read.

Outputs

  • common (Column). One count per edge, in the order core.edges lists them.
local common = g.geometry.shared({ geometry = g.mesh.box({}) })