Runs the kernel's general repair over a shape: closes small gaps, fixes wire and face defects and brings tolerances into the given range.
precision is the size of defect to look for, minTolerance and maxTolerance bound the
tolerances the repaired shape may carry, all in model units. Try it first on any shape that
fails isValid.
The shape and the precision and tolerance bounds
The repaired shape
Tells whether the shape is well formed, which a successful operation does not always guarantee.
It checks that edges lie on their faces, wires and shells close, and tolerances agree. A fillet too large for its faces fails; a shape passing through itself, such as a pipe wider than its bends, passes. Large parts take a few hundred milliseconds.
The shape
True when the shape is well formed
Checks a shape as isValid does and reports each faulty sub-shape with the checks
it fails, and the spread of its tolerances.
A fault's index is the one the getter of its kind uses: shapes.face.getFace with a face
fault's index gives that face. Overlapping faces are not looked for;
analysis.clashes.selfIntersections finds those.
The shape to check
Whether the shape is valid, its faults and its smallest, largest and average tolerance
Finds the edges of a shape that bound only one face, joined into wires: the rims of an open shell's openings, or a lone face's outline and holes.
Wires that close on themselves come back in closed, the rest in open; a closed solid has
none. Edges closer than tolerance, in model units, count as one.
The shape and the tolerance
Two compounds of wires, the closed and the open ones
Sews the faces of shapes together along edges that lie within tolerance of each other, as
shapes.shell.sewFaces does, and reports what it joined and what it left open.
freeEdges holds the edges left bounding only one face; with nonManifold true an edge may
join more than two faces. The shapes given are left as they were.
The shapes, the tolerance and whether an edge may join more than two faces
The sewn shape, the free edges and the counts of free, multiple, sewn and degenerate edges
Repairs a shell: turns its faces so they all face the same way and fixes its faces and edges.
When the faces cannot all be turned one way, as on a strip given a half twist, the result is a compound of shells. A shape that is not a shell is refused.
The shell to repair
The repaired shell, or a compound of shells
Repairs a solid, or makes one from a closed shell, with its shells fixed and turned so the material is inside.
A shell that encloses nothing comes back fixed but still a shell, and shells that fix into separate solids come back as a compound of them. Other kinds of shape are refused.
The solid or shell to repair
The repaired solid, or a shell or a compound when no single solid can be made
Turns a closed solid so its material is inside, which gives an inside-out solid its positive volume back; only the orientation changes.
A shape that is not a solid, a solid without a shell and a solid whose shell has an opening are refused.
The closed solid
The solid, oriented with its material inside
Removes edges shorter than precsmall from a wire and closes the gaps they leave, so a tiny
sliver no longer breaks a fillet or a face.
With lockvtx true the existing vertices are kept in place; otherwise they may move to close
the gap. A precsmall of 0 uses the wire's own tolerance.
The wire, whether to keep vertices fixed and the length below which an edge counts as small
The cleaned wire
Rebuilds a wire so its edges run head to tail in one direction along it.
A wire assembled from loose edges can hold edges pointing against the flow; this walks the wire in order and joins the edges again the right way round, which some operations need.
The wire
The wire with consistently oriented edges
Checks and repairs for OpenCascade shapes that came out of a file or an operation with defects: gaps between edges, edges too short to matter, faces turned the wrong way, shells left open, tolerances that drifted.
isValidtells whether a shape is well formed,validityReportsays what is wrong and where, andfreeBoundariesshows the rims of openings;basicShapeRepairis the general fix, the shell, solid and sewing fixes and the wire fixes handle the rest. Every repair returns a new shape.