MCPcopy
hub / github.com/CadQuery/cadquery / isValid

Method isValid

cadquery/occ_impl/shapes.py:675–681  ·  view source on GitHub ↗

Returns True if no defect is detected on the shape S or any of its subshapes. See the OCCT docs on BRepCheck_Analyzer::IsValid for a full description of what is checked.

(self)

Source from the content-addressed store, hash-verified

673 return self.wrapped.IsEqual(other.wrapped)
674
675 def isValid(self) -> bool:
676 """
677 Returns True if no defect is detected on the shape S or any of its
678 subshapes. See the OCCT docs on BRepCheck_Analyzer::IsValid for a full
679 description of what is checked.
680 """
681 return BRepCheck_Analyzer(self.wrapped).IsValid()
682
683 def BoundingBox(
684 self, tolerance: float | None = None

Callers 15

fixMethod · 0.95
test_periodic_curveFunction · 0.80
test_curveFunction · 0.80
test_surfaceFunction · 0.80
test_approximateFunction · 0.80
test_periodic_loftFunction · 0.80
test_loftFunction · 0.80
test_approximate2DFunction · 0.80
test_exampleFunction · 0.80
test_constraint_solverFunction · 0.80
test_dxf_importFunction · 0.80

Calls

no outgoing calls

Tested by 15

test_periodic_curveFunction · 0.64
test_curveFunction · 0.64
test_surfaceFunction · 0.64
test_approximateFunction · 0.64
test_periodic_loftFunction · 0.64
test_loftFunction · 0.64
test_approximate2DFunction · 0.64
test_exampleFunction · 0.64
test_constraint_solverFunction · 0.64
test_dxf_importFunction · 0.64
test_mixed_closeFunction · 0.64