Functions | |
def | geompy.MakePrism |
Create a shape by extrusion of the base shape along a vector, defined by two points. | |
def | geompy.MakePrism2Ways |
Create a shape by extrusion of the base shape along a vector, defined by two points, in 2 Ways (forward/backward). | |
def | geompy.MakePrismVecH |
Create a shape by extrusion of the base shape along the vector, i.e. | |
def | geompy.MakePrismVecH2Ways |
Create a shape by extrusion of the base shape along the vector, i.e. | |
def | geompy.MakePrismDXDYDZ |
Create a shape by extrusion of the base shape along the dx, dy, dz direction. | |
def | geompy.MakePrismDXDYDZ2Ways |
Create a shape by extrusion of the base shape along the dx, dy, dz direction i.e. | |
def | geompy.MakeRevolution |
Create a shape by revolution of the base shape around the axis on the given angle, i.e. | |
def | geompy.MakeRevolution2Ways |
Create a shape by revolution of the base shape around the axis on the given angle, i.e. | |
def | geompy.MakeFilling |
Create a filling from the given compound of contours. | |
def | geompy.MakeThruSections |
Create a shell or solid passing through set of sections.Sections should be wires,edges or vertices. | |
def | geompy.MakePipe |
Create a shape by extrusion of the base shape along the path shape. | |
def | geompy.MakePipeWithDifferentSections |
Create a shape by extrusion of the profile shape along the path shape. | |
def | geompy.MakePipeWithShellSections |
Create a shape by extrusion of the profile shape along the path shape. | |
def | geompy.MakePipeWithShellSectionsBySteps |
Create a shape by extrusion of the profile shape along the path shape. | |
def | geompy.MakePipeShellsWithoutPath |
Create solids between given sections. | |
def | geompy.MakePipeBiNormalAlongVector |
Create a shape by extrusion of the base shape along the path shape with constant bi-normal direction along the given vector. |
def geompy.MakePrism | ( | self, | |
theBase, | |||
thePoint1, | |||
thePoint2, | |||
theScaleFactor = -1.0 |
|||
) |
Create a shape by extrusion of the base shape along a vector, defined by two points.
theBase | Base shape to be extruded. |
thePoint1 | First end of extrusion vector. |
thePoint2 | Second end of extrusion vector. |
theScaleFactor | Use it to make prism with scaled second base. Nagative value means not scaled second base. |
References geompy.ParseParameters(), and geompy.RaiseIfFailed().
def geompy.MakePrism2Ways | ( | self, | |
theBase, | |||
thePoint1, | |||
thePoint2 | |||
) |
Create a shape by extrusion of the base shape along a vector, defined by two points, in 2 Ways (forward/backward).
theBase | Base shape to be extruded. |
thePoint1 | First end of extrusion vector. |
thePoint2 | Second end of extrusion vector. |
References geompy.RaiseIfFailed().
def geompy.MakePrismVecH | ( | self, | |
theBase, | |||
theVec, | |||
theH, | |||
theScaleFactor = -1.0 |
|||
) |
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.
theBase | Base shape to be extruded. |
theVec | Direction of extrusion. |
theH | Prism dimension along theVec. |
theScaleFactor | Use it to make prism with scaled second base. Negative value means not scaled second base. |
References geompy.ParseParameters(), and geompy.RaiseIfFailed().
def geompy.MakePrismVecH2Ways | ( | self, | |
theBase, | |||
theVec, | |||
theH | |||
) |
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).
theBase | Base shape to be extruded. |
theVec | Direction of extrusion. |
theH | Prism dimension along theVec in forward direction. |
References geompy.ParseParameters(), and geompy.RaiseIfFailed().
def geompy.MakePrismDXDYDZ | ( | self, | |
theBase, | |||
theDX, | |||
theDY, | |||
theDZ, | |||
theScaleFactor = -1.0 |
|||
) |
Create a shape by extrusion of the base shape along the dx, dy, dz direction.
theBase | Base shape to be extruded. |
theDX,theDY,theDZ | Directions of extrusion. |
theScaleFactor | Use it to make prism with scaled second base. Nagative value means not scaled second base. |
References geompy.ParseParameters(), and geompy.RaiseIfFailed().
def geompy.MakePrismDXDYDZ2Ways | ( | self, | |
theBase, | |||
theDX, | |||
theDY, | |||
theDZ | |||
) |
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).
theBase | Base shape to be extruded. |
theDX,theDY,theDZ | Directions of extrusion. |
References geompy.ParseParameters(), and geompy.RaiseIfFailed().
def geompy.MakeRevolution | ( | self, | |
theBase, | |||
theAxis, | |||
theAngle | |||
) |
Create a shape by revolution of the base shape around the axis on the given angle, i.e.
all the space, transfixed by the base shape during its rotation around the axis on the given angle.
theBase | Base shape to be rotated. |
theAxis | Rotation axis. |
theAngle | Rotation angle in radians. |
References geompy.ParseParameters(), and geompy.RaiseIfFailed().
def geompy.MakeRevolution2Ways | ( | self, | |
theBase, | |||
theAxis, | |||
theAngle | |||
) |
Create a shape by revolution of the base shape around the axis on the given angle, i.e.
all the space, transfixed by the base shape during its rotation around the axis on the given angle in both directions (forward/backward)
theBase | Base shape to be rotated. |
theAxis | Rotation axis. |
theAngle | Rotation angle in radians. |
References geompy.MakeFilling(), geompy.ParseParameters(), and geompy.RaiseIfFailed().
def geompy.MakeFilling | ( | self, | |
theShape, | |||
theMinDeg, | |||
theMaxDeg, | |||
theTol2D, | |||
theTol3D, | |||
theNbIter, | |||
theMethod = GEOM.FOM_Default , |
|||
isApprox = 0 |
|||
) |
Create a filling from the given compound of contours.
theShape | the compound of contours |
theMinDeg | a minimal degree of BSpline surface to create |
theMaxDeg | a maximal degree of BSpline surface to create |
theTol2D | a 2d tolerance to be reached |
theTol3D | a 3d tolerance to be reached |
theNbIter | a number of iteration of approximation algorithm |
theMethod | Kind of method to perform filling operation(see GEOM::filling_oper_method()) |
isApprox | if True, BSpline curves are generated in the process of surface construction. By default it is False, that means the surface is created using Besier curves. The usage of Approximation makes the algorithm work slower, but allows building the surface for rather complex cases |
References geompy.ParseParameters(), and geompy.RaiseIfFailed().
def geompy.MakeThruSections | ( | self, | |
theSeqSections, | |||
theModeSolid, | |||
thePreci, | |||
theRuled | |||
) |
Create a shell or solid passing through set of sections.Sections should be wires,edges or vertices.
theSeqSections | - set of specified sections. |
theModeSolid | - mode defining building solid or shell |
thePreci | - precision 3D used for smoothing |
theRuled | - mode defining type of the result surfaces (ruled or smoothed). |
Example
References geompy.RaiseIfFailed().
def geompy.MakePipe | ( | self, | |
theBase, | |||
thePath | |||
) |
Create a shape by extrusion of the base shape along the path shape.
The path shape can be a wire or an edge.
theBase | Base shape to be extruded. |
thePath | Path shape to extrude the base shape along it. |
References geompy.MakePipeWithDifferentSections(), and geompy.RaiseIfFailed().
def geompy.MakePipeWithDifferentSections | ( | self, | |
theSeqBases, | |||
theLocations, | |||
thePath, | |||
theWithContact, | |||
theWithCorrection | |||
) |
Create a shape by extrusion of the profile shape along the path shape.
The path shape can be a wire or an edge. the several profiles can be specified in the several locations of path.
theSeqBases | - list of Bases shape to be extruded. |
theLocations | - list of locations on the path corresponding specified list of the Bases shapes. Number of locations should be equal to number of bases or list of locations can be empty. |
thePath | - Path shape to extrude the base shape along it. |
theWithContact | - the mode defining that the section is translated to be in contact with the spine. |
theWithCorrection | - defining that the section is rotated to be orthogonal to the spine tangent in the correspondent point |
References geompy.MakePipeWithShellSections(), and geompy.RaiseIfFailed().
def geompy.MakePipeWithShellSections | ( | self, | |
theSeqBases, | |||
theSeqSubBases, | |||
theLocations, | |||
thePath, | |||
theWithContact, | |||
theWithCorrection | |||
) |
Create a shape by extrusion of the profile shape along the path shape.
The path shape can be a wire or a edge. the several profiles can be specified in the several locations of path.
theSeqBases | - list of Bases shape to be extruded. Base shape must be shell or face. If number of faces in neighbour sections aren't coincided result solid between such sections will be created using external boundaries of this shells. |
theSeqSubBases | - list of corresponding sub-shapes of section shapes. This list is used for searching correspondences between faces in the sections. Size of this list must be equal to size of list of base shapes. |
theLocations | - list of locations on the path corresponding specified list of the Bases shapes. Number of locations should be equal to number of bases. First and last locations must be coincided with first and last vertexes of path correspondingly. |
thePath | - Path shape to extrude the base shape along it. |
theWithContact | - the mode defining that the section is translated to be in contact with the spine. |
theWithCorrection | - defining that the section is rotated to be orthogonal to the spine tangent in the correspondent point |
References geompy.MakePipeWithShellSectionsBySteps(), and geompy.RaiseIfFailed().
def geompy.MakePipeWithShellSectionsBySteps | ( | self, | |
theSeqBases, | |||
theSeqSubBases, | |||
theLocations, | |||
thePath, | |||
theWithContact, | |||
theWithCorrection | |||
) |
Create a shape by extrusion of the profile shape along the path shape.
This function is used only for debug pipe functionality - it is a version of function MakePipeWithShellSections() which give a possibility to recieve information about creating pipe between each pair of sections step by step.
References geompy.RaiseIfFailed().
def geompy.MakePipeShellsWithoutPath | ( | self, | |
theSeqBases, | |||
theLocations | |||
) |
Create solids between given sections.
theSeqBases | - list of sections (shell or face). |
theLocations | - list of corresponding vertexes |
References geompy.RaiseIfFailed().
def geompy.MakePipeBiNormalAlongVector | ( | self, | |
theBase, | |||
thePath, | |||
theVec | |||
) |
Create a shape by extrusion of the base shape along the path shape with constant bi-normal direction along the given vector.
The path shape can be a wire or an edge.
theBase | Base shape to be extruded. |
thePath | Path shape to extrude the base shape along it. |
theVec | Vector defines a constant binormal direction to keep the same angle beetween the direction and the sections along the sweep surface. |
References geompy.RaiseIfFailed().