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

Method Center

cadquery/occ_impl/shapes.py:3482–3487  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3480 return Vector(du).normalized(), Vector(dv).normalized(), Vector(p)
3481
3482 def Center(self) -> Vector:
3483
3484 Properties = GProp_GProps()
3485 BRepGProp.SurfaceProperties_s(self.wrapped, Properties)
3486
3487 return Vector(Properties.CentreOfMass())
3488
3489 def outerWire(self) -> Wire:
3490

Callers 15

get_doc_nodesFunction · 0.95
distMethod · 0.45
filterMethod · 0.45
keyMethod · 0.45
rarrayMethod · 0.45
parrayMethod · 0.45
eachMethod · 0.45
_isCoPlanarMethod · 0.45
workplaneMethod · 0.45
_rotMethod · 0.45
mirrorMethod · 0.45
_findFromPointMethod · 0.45

Calls 1

VectorClass · 0.85

Tested by 15

get_doc_nodesFunction · 0.76
testVertexMethod · 0.36
testEdgeWrapperCenterMethod · 0.36
testCompoundCenterMethod · 0.36
testTranslateMethod · 0.36
test_distributeFunction · 0.36
test_parrayFunction · 0.36
test_edge_interfaceFunction · 0.36
test_mapFunction · 0.36
test_replaceFunction · 0.36
test_centerFunction · 0.36