mesh_to_points — 3D transform op

• Data kinds: mesh → points

• Call: import fullseye as fs; fs.ledger.mesh_to_points(vertices, faces, samples=20000, seed=0) (to call the implementation directly, import match3d; match3d.mesh_to_points(vertices, faces, samples=20000, seed=0); from the registry, ops3d.get("mesh_to_points"))

Usage

Mesh (vertices + faces) → a surface point set (area-weighted uniform sampling). The mesh → point-cloud conversion.

Procedure: the area 0.5·|(b−a)×(c−a)| of each triangle tri = vertices[faces] is used as a probability, samples faces are drawn with replacement, and on each face u, v ~ U(0,1) is drawn; if u + v > 1 it is folded back to (1−u, 1−v) (uniform barycentric). Point = a + u(b−a) + v(c−a). seed fixes default_rng, so the same arguments give the same point cloud.

• vertices (V,3) float, faces (F,3) int (0-based vertex indices).

• Returns (samples, 3) float64. Exactly samples points regardless of the number of faces.

• If all faces are degenerate (total area 0), the probabilities become NaN and rng.choice raises ValueError.

• No normals are attached (add them with estimate_point_normals). Area weighting means larger faces get more points;

the result does not depend on vertex density.

Downstream: points_to_voxel / icp_point2point_3d / match_pca.

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

Runnable examples (verified samples that actually call this op)

• mesh_decimate — py -3.11 examples_3d/mesh_decimate.py

Ops the type connects to (they accept points as input)

points_to_voxel · gaussians_to_voxel · estimate_point_normals · to_points · match_points_ncc · match_pca · moment_axes · icp_point2point_3d

Same category (transform)

points_to_voxel · gaussians_to_voxel · mesh_to_voxel · depth_to_points · voxel_to_mips · voxel_to_mesh · tsdf_from_depth · signed_distance_field


*Provenance: match3d.py — 3D operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.