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

Method Volume

cadquery/occ_impl/shapes.py:1113–1118  ·  view source on GitHub ↗

:returns: The volume of this Shape

(self, tol: float | None = None)

Source from the content-addressed store, hash-verified

1111 return Properties.Mass()
1112
1113 def Volume(self, tol: float | None = None) -> float:
1114 """
1115 :returns: The volume of this Shape
1116 """
1117 # when density == 1, mass == volume
1118 return Shape.computeMass(self, tol)
1119
1120 def _apply_transform(self: T, Tr: gp_Trsf) -> T:
1121

Callers 15

test_mirrorMethod · 0.80
test_all_planesMethod · 0.80
test_mirror_axisMethod · 0.80
test_mirror_workplaneMethod · 0.80
test_mirror_faceMethod · 0.80
test_bezier_curveMethod · 0.80
test_bin_import_exportFunction · 0.80
test_specialFunction · 0.80
test_reverseFunction · 0.80
importBoxMethod · 0.80
importCompoundMethod · 0.80

Calls 1

computeMassMethod · 0.80

Tested by 15

test_mirrorMethod · 0.64
test_all_planesMethod · 0.64
test_mirror_axisMethod · 0.64
test_mirror_workplaneMethod · 0.64
test_mirror_faceMethod · 0.64
test_bezier_curveMethod · 0.64
test_bin_import_exportFunction · 0.64
test_specialFunction · 0.64
test_reverseFunction · 0.64
importBoxMethod · 0.64
importCompoundMethod · 0.64