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

Method _revolve

cadquery/cq.py:3800–3821  ·  view source on GitHub ↗

Make a solid from the existing set of pending wires. :param angleDegrees: the angle to revolve through. :type angleDegrees: float, anything less than 360 degrees will leave the shape open :param axisStart: the start point of the axis of rotation :param axisE

(
        self, angleDegrees: float, axisStart: VectorLike, axisEnd: VectorLike
    )

Source from the content-addressed store, hash-verified

3798 return res
3799
3800 def _revolve(
3801 self, angleDegrees: float, axisStart: VectorLike, axisEnd: VectorLike
3802 ) -> Compound:
3803 """
3804 Make a solid from the existing set of pending wires.
3805
3806 :param angleDegrees: the angle to revolve through.
3807 :type angleDegrees: float, anything less than 360 degrees will leave the shape open
3808 :param axisStart: the start point of the axis of rotation
3809 :param axisEnd: the end point of the axis of rotation
3810 :return: a OCCT solid(s), suitable for boolean operations.
3811
3812 This method is a utility method, primarily for plugin and internal use.
3813 """
3814
3815 # Revolve, make a compound out of them and then fuse them
3816 toFuse = []
3817 for f in self._getFaces():
3818 thisObj = Solid.revolve(f, angleDegrees, Vector(axisStart), Vector(axisEnd))
3819 toFuse.append(thisObj)
3820
3821 return Compound.makeCompound(toFuse)
3822
3823 def _sweep(
3824 self,

Callers 1

revolveMethod · 0.95

Calls 5

_getFacesMethod · 0.95
VectorClass · 0.85
appendMethod · 0.80
makeCompoundMethod · 0.80
revolveMethod · 0.45

Tested by

no test coverage detected