pub fn refine_solid(
model: &mut Model,
shape: &Shape,
options: &MeshSolidOptions,
tol: Tolerances,
) -> OgeomResult<MeshSolid>Expand description
Rebuild a solid’s faceted stretches on the surfaces they approximate.
The second of two steps: solid_from_mesh without recognition keeps
a mesh as it is, every flat stretch one face and every curved one its
facets; this finds the cylinders, cones, spheres and tori among the
facets of such a solid (or of any solid) and builds them anew as
solid_from_mesh with recognition would. The solid is triangulated,
its flat faces exactly and any curved ones to a chord of a
ten-thousandth of its size, and the triangles read as a mesh. The first
step reads best with MeshSolidOptions::keep_vertices, so the
solid’s edges keep the mesh’s samples along curved stretches; pass its
quantum in options where the mesh came from a file.
§Errors
As solid_from_mesh, and where the solid cannot be triangulated.