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

Method _setPlaneDir

cadquery/occ_impl/geom.py:810–814  ·  view source on GitHub ↗

Set the vectors parallel to the plane, i.e. xDir and yDir

(self, xDir)

Source from the content-addressed store, hash-verified

808 return resultWires
809
810 def _setPlaneDir(self, xDir):
811 """Set the vectors parallel to the plane, i.e. xDir and yDir"""
812 xDir = Vector(xDir)
813 self.xDir = xDir.normalized()
814 self.yDir = self.zDir.cross(self.xDir).normalized()
815
816 def _calcTransforms(self):
817 """Computes transformation matrices to convert between coordinates

Callers 13

__init__Method · 0.95
XYMethod · 0.80
YZMethod · 0.80
ZXMethod · 0.80
XZMethod · 0.80
YXMethod · 0.80
ZYMethod · 0.80
frontMethod · 0.80
backMethod · 0.80
leftMethod · 0.80
rightMethod · 0.80
topMethod · 0.80

Calls 3

normalizedMethod · 0.95
VectorClass · 0.85
crossMethod · 0.80

Tested by

no test coverage detected