MCPcopy Index your code
hub / github.com/CadQuery/cadquery / _getVector

Method _getVector

cadquery/selectors.py:752–760  ·  view source on GitHub ↗

Translate parsed vector string into a CQ Vector

(self, pr)

Source from the content-addressed store, hash-verified

750 return DirectionMinMaxSelector(*args)
751
752 def _getVector(self, pr):
753 """
754 Translate parsed vector string into a CQ Vector
755 """
756 if "vector_dir" in pr:
757 vec = pr.vector_dir
758 return Vector(float(vec.x), float(vec.y), float(vec.z))
759 else:
760 return self.axes[pr.simple_dir]
761
762 def filter(self, objectList: Sequence[Shape]):
763 r"""

Callers 1

_chooseSelectorMethod · 0.95

Calls 1

VectorClass · 0.85

Tested by

no test coverage detected