Functions | |
def | geompy.MakePrism |
Create a shape by extrusion of the base shape along a vector, defined by two points. | |
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 |
def | geompy.MakePrismDXDYDZ2Ways |
def | geompy.MakeRevolution |
Create a shape by revolution of the base shape around the axis on the given angle, i.e. | |
def | geompy.MakeRevolution2Ways |
The Same Revolution but in both ways forward&backward. | |
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 | ||||
) |
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. |
def geompy.MakePrismVecH | ( | 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.
theBase | Base shape to be extruded. | |
theVec | Direction of extrusion. | |
theH | Prism dimension along theVec. |
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. |
def geompy.MakePrismDXDYDZ | ( | self, | ||
theBase, | ||||
theDX, | ||||
theDY, | ||||
theDZ | ||||
) |
def geompy.MakePrismDXDYDZ2Ways | ( | self, | ||
theBase, | ||||
theDX, | ||||
theDY, | ||||
theDZ | ||||
) |
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. |
def geompy.MakeRevolution2Ways | ( | self, | ||
theBase, | ||||
theAxis, | ||||
theAngle | ||||
) |
The Same Revolution but in both ways forward&backward.
def geompy.MakeFilling | ( | self, | ||
theShape, | ||||
theMinDeg, | ||||
theMaxDeg, | ||||
theTol2D, | ||||
theTol3D, | ||||
theNbIter, | ||||
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 | |
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 |
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 by default 1.e-6 | |
theRuled | - mode defining type of the result surfaces (ruled or smoothed). |
Example
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. |
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 |
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 subshapes 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 |
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 previous function (MakePipeWithShellSections(...)) which give a possibility to recieve information about creating pipe between each pair of sections step by step.
def geompy.MakePipeShellsWithoutPath | ( | self, | ||
theSeqBases, | ||||
theLocations | ||||
) |
Create solids between given sections.
theSeqBases | - list of sections (shell or face). | |
theLocations | - list of corresponding vertexes |
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. |