Add missing method MakePrism2Ways.

This commit is contained in:
jfa 2011-03-03 12:13:55 +00:00
parent f16a176c32
commit 78ecbcf67b

View File

@ -1303,6 +1303,20 @@ class geompyDC(GEOM._objref_GEOM_Gen):
RaiseIfFailed("MakePrismTwoPnt", self.PrimOp)
return anObj
## Create a shape by extrusion of the base shape along a
# vector, defined by two points, in 2 Ways (forward/backward).
# @param theBase Base shape to be extruded.
# @param thePoint1 First end of extrusion vector.
# @param thePoint2 Second end of extrusion vector.
# @return New GEOM_Object, containing the created prism.
#
# @ref tui_creation_prism "Example"
def MakePrism2Ways(self, theBase, thePoint1, thePoint2):
# Example: see GEOM_TestAll.py
anObj = self.PrimOp.MakePrismTwoPnt2Ways(theBase, thePoint1, thePoint2)
RaiseIfFailed("MakePrismTwoPnt", self.PrimOp)
return anObj
## Create a shape by extrusion of the base shape along the vector,
# i.e. all the space, transfixed by the base shape during its translation
# along the vector on the given distance.
@ -1322,7 +1336,7 @@ class geompyDC(GEOM._objref_GEOM_Gen):
## Create a shape by extrusion of the base shape along the vector,
# i.e. all the space, transfixed by the base shape during its translation
# along the vector on the given distance in 2 Ways (forward/backward) .
# along the vector on the given distance in 2 Ways (forward/backward).
# @param theBase Base shape to be extruded.
# @param theVec Direction of extrusion.
# @param theH Prism dimension along theVec in forward direction.
@ -1353,7 +1367,7 @@ class geompyDC(GEOM._objref_GEOM_Gen):
## Create a shape by extrusion of the base shape along the dx, dy, dz direction
# i.e. all the space, transfixed by the base shape during its translation
# along the vector on the given distance in 2 Ways (forward/backward) .
# along the vector on the given distance in 2 Ways (forward/backward).
# @param theBase Base shape to be extruded.
# @param theDX, theDY, theDZ Directions of extrusion.
# @return New GEOM_Object, containing the created prism.