Functions | |
| NumberOfFaces (self, theShape) | |
| Gives quantity of faces in the given shape. | |
| NumberOfEdges (self, theShape) | |
| Gives quantity of edges in the given shape. | |
| NumberOfSubShapes (self, theShape, theShapeType) | |
| Gives quantity of sub-shapes of type theShapeType in the given shape. | |
| NumberOfSolids (self, theShape) | |
| Gives quantity of solids in the given shape. | |
| PointCoordinates (self, Point) | |
| Get point coordinates. | |
| VectorCoordinates (self, Vector) | |
| Get vector coordinates. | |
| CrossProduct (self, Vector1, Vector2) | |
| Compute cross product. | |
| DotProduct (self, Vector1, Vector2) | |
| Compute cross product. | |
| BasicProperties (self, theShape, theTolerance=1.e-6) | |
| Get summarized length of all wires, area of surface and volume of the given shape. | |
| BoundingBox (self, theShape, precise=False) | |
| Get parameters of bounding box of the given shape. | |
| MakeBoundingBox (self, theShape, precise=False, theName=None) | |
| Get bounding box of the given shape. | |
| Inertia (self, theShape) | |
| Get inertia matrix and moments of inertia of theShape. | |
| AreCoordsInside (self, theShape, coords, tolerance=1.e-7) | |
| Get if coords are included in the shape (ST_IN or ST_ON) | |
| MinDistance (self, theShape1, theShape2) | |
| Get minimal distance between the given shapes. | |
| MinDistanceComponents (self, theShape1, theShape2) | |
| Get minimal distance between the given shapes. | |
| ClosestPoints (self, theShape1, theShape2) | |
| Get closest points of the given shapes. | |
| GetAngle (self, theShape1, theShape2) | |
| Get angle between the given shapes in degrees. | |
| GetAngleRadians (self, theShape1, theShape2) | |
| Get angle between the given shapes in radians. | |
| GetAngleVectors (self, theShape1, theShape2, theFlag=True) | |
| Get angle between the given vectors in degrees. | |
| GetAngleRadiansVectors (self, theShape1, theShape2, theFlag=True) | |
| The same as GetAngleVectors, but the result is in radians. | |
| CurvatureOnFace (self, theSurf, thePoint, theDirection, theName=None) | |
| Measure curvature radius of surface in the given point along the given direction. | |
| XYZtoUV (self, theSurf, theXYZlist, theIsNormalized=True) | |
| Convert X,Y,Z points coordinates to UV parameters on the given surface. | |
| UVtoXYZ (self, theSurf, theUVlist, theIsNormalized=True) | |
| Convert UV parameters on the given surface to 3D points coordinates. | |
| Tolerance (self, theShape) | |
| Get min and max tolerances of sub-shapes of theShape. | |
| WhatIs (self, theShape) | |
| Obtain description of the given shape (number of sub-shapes of each type) | |
| NbShapes (self, theShape, theType) | |
| Obtain quantity of shapes of the given type in theShape. | |
| ShapeInfo (self, theShape) | |
| Obtain quantity of shapes of each type in theShape. | |
| GetCreationInformation (self, theShape) | |
| MakeCDG (self, theShape, theName=None) | |
| Get a point, situated at the centre of mass of theShape. | |
| GetVertexByIndex (self, theShape, theIndex, theUseOri=True, theName=None) | |
| Get a vertex sub-shape by index. | |
| GetFirstVertex (self, theShape, theName=None) | |
| Get the first vertex of wire/edge depended orientation. | |
| GetLastVertex (self, theShape, theName=None) | |
| Get the last vertex of wire/edge depended orientation. | |
| GetNormal (self, theFace, theOptionalPoint=None, theName=None) | |
| Get a normale to the given face. | |
| PrintShapeErrors (self, theShape, theShapeErrors, theReturnStatus=0) | |
| Print shape errors obtained from CheckShape. | |
| CheckShape (self, theShape, theIsCheckGeom=False, theReturnStatus=0, theIsExact=False) | |
| Check a topology of the given shape. | |
| CheckSelfIntersections (self, theShape, theCheckLevel=GEOM.SI_ALL) | |
| Detect self-intersections in the given shape. | |
| CheckSelfIntersectionsFast (self, theShape, theDeflection=0.001, theTolerance=0.0) | |
| Detect self-intersections of the given shape with algorithm based on mesh intersections. | |
| CheckBOPArguments (self, theShape) | |
| Check boolean and partition operations arguments. | |
| ExtractBOPFailure (self, theShapes, theTimer=False, theTopo=False, theParallel=False, theExact=False, theVerbose=False, theName=None) | |
| Performs general fuse BOP on the given list of shapes and extracts CheckShape information from its invalid result. | |
| FastIntersect (self, theShape1, theShape2, theTolerance=0.0, theDeflection=0.001) | |
| Detect intersections of the given shapes with algorithm based on mesh intersections. | |
| GetPosition (self, theShape) | |
| Get position (LCS) of theShape. | |
| KindOfShape (self, theShape) | |
| Get kind of theShape. | |
| PatchFace (self, theShape) | |
| The function takes a single face with holes and returns a list of faces, first of them is the original face without holes, and the other faces are placed on the same surface as the original face but bounded by each hole wire. | |
| _IsGoodForSolid (self, theShell) | |
| Returns the string that describes if the shell is good for solid. | |
| CanonicalRecognition (self) | |
| Obtain a canonical recognition interface. | |
Curve Curvature Measurement | |
Methods for receiving radius of curvature of curves in the given point | |
| CurveCurvatureByParam (self, theCurve, theParam) | |
| Measure curvature of a curve at a point, set by parameter. | |
| CurveCurvatureByPoint (self, theCurve, thePoint) | |
| Measure curvature of a curve at a point. | |
Surface Curvature Measurement | |
Methods for receiving max and min radius of curvature of surfaces in the given point | |
| MaxSurfaceCurvatureByParam (self, theSurf, theUParam, theVParam) | |
| Measure max radius of curvature of surface. | |
| MaxSurfaceCurvatureByPoint (self, theSurf, thePoint) | |
| Measure max radius of curvature of surface in the given point. | |
| MinSurfaceCurvatureByParam (self, theSurf, theUParam, theVParam) | |
| Measure min radius of curvature of surface. | |
| MinSurfaceCurvatureByPoint (self, theSurf, thePoint) | |
| Measure min radius of curvature of surface in the given point. | |
| NumberOfFaces | ( | self, | |
| theShape | |||
| ) |
Gives quantity of faces in the given shape.
| theShape | Shape to count faces of. |
References geomBuilder.NumberOfFaces(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.
| NumberOfEdges | ( | self, | |
| theShape | |||
| ) |
Gives quantity of edges in the given shape.
| theShape | Shape to count edges of. |
References geomBuilder.NumberOfEdges(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.
| NumberOfSubShapes | ( | self, | |
| theShape, | |||
| theShapeType | |||
| ) |
Gives quantity of sub-shapes of type theShapeType in the given shape.
| theShape | Shape to count sub-shapes of. |
| theShapeType | Type of sub-shapes to count (see ShapeType()) |
References geomBuilder.NumberOfSubShapes(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.
| NumberOfSolids | ( | self, | |
| theShape | |||
| ) |
Gives quantity of solids in the given shape.
| theShape | Shape to count solids in. |
References geomBuilder.NumberOfSubShapes(), geomBuilder.RaiseIfFailed(), geomBuilder.ShapesOp, and geomBuilder.ShapeType.
| PointCoordinates | ( | self, | |
| Point | |||
| ) |
Get point coordinates.
References geomBuilder.MeasuOp, geomBuilder.PointCoordinates(), and geomBuilder.RaiseIfFailed().
| VectorCoordinates | ( | self, | |
| Vector | |||
| ) |
Get vector coordinates.
References geomBuilder.GetFirstVertex(), geomBuilder.GetLastVertex(), GEOM_IMeasureOperations.PointCoordinates(), and geomBuilder.PointCoordinates().
| CrossProduct | ( | self, | |
| Vector1, | |||
| Vector2 | |||
| ) |
Compute cross product.
References GEOM_IBasicOperations.MakeVectorDXDYDZ(), geomBuilder.MakeVectorDXDYDZ(), and geomBuilder.VectorCoordinates().
| DotProduct | ( | self, | |
| Vector1, | |||
| Vector2 | |||
| ) |
| BasicProperties | ( | self, | |
| theShape, | |||
theTolerance = 1.e-6 |
|||
| ) |
Get summarized length of all wires, area of surface and volume of the given shape.
| theShape | Shape to define properties of. |
| theTolerance | maximal relative error of area and volume computation. |
References geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| BoundingBox | ( | self, | |
| theShape, | |||
precise = False |
|||
| ) |
Get parameters of bounding box of the given shape.
| theShape | Shape to obtain bounding box of. |
| precise | TRUE for precise computation; FALSE for fast one. |
References geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| MakeBoundingBox | ( | self, | |
| theShape, | |||
precise = False, |
|||
theName = None |
|||
| ) |
Get bounding box of the given shape.
| theShape | Shape to obtain bounding box of. |
| precise | TRUE for precise computation; FALSE for fast one. |
| theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.MakeBoundingBox(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| Inertia | ( | self, | |
| theShape | |||
| ) |
Get inertia matrix and moments of inertia of theShape.
| theShape | Shape to calculate inertia of. |
References geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| AreCoordsInside | ( | self, | |
| theShape, | |||
| coords, | |||
tolerance = 1.e-7 |
|||
| ) |
Get if coords are included in the shape (ST_IN or ST_ON)
| theShape | Shape |
| coords | list of points coordinates [x1, y1, z1, x2, y2, z2, ...] |
| tolerance | to be used (default is 1.0e-7) |
References geomBuilder.AreCoordsInside(), and geomBuilder.MeasuOp.
| MinDistance | ( | self, | |
| theShape1, | |||
| theShape2 | |||
| ) |
Get minimal distance between the given shapes.
| theShape1,theShape2 | Shapes to find minimal distance between. |
References geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| MinDistanceComponents | ( | self, | |
| theShape1, | |||
| theShape2 | |||
| ) |
Get minimal distance between the given shapes.
| theShape1,theShape2 | Shapes to find minimal distance between. |
References geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| ClosestPoints | ( | self, | |
| theShape1, | |||
| theShape2 | |||
| ) |
Get closest points of the given shapes.
| theShape1,theShape2 | Shapes to find closest points of. |
References geomBuilder.ClosestPoints(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| GetAngle | ( | self, | |
| theShape1, | |||
| theShape2 | |||
| ) |
Get angle between the given shapes in degrees.
| theShape1,theShape2 | Lines or linear edges to find angle between. |
References geomBuilder.GetAngle(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| GetAngleRadians | ( | self, | |
| theShape1, | |||
| theShape2 | |||
| ) |
Get angle between the given shapes in radians.
| theShape1,theShape2 | Lines or linear edges to find angle between. |
References geomBuilder.GetAngle(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| GetAngleVectors | ( | self, | |
| theShape1, | |||
| theShape2, | |||
theFlag = True |
|||
| ) |
Get angle between the given vectors in degrees.
| theShape1,theShape2 | Vectors to find angle between. |
| theFlag | If True, the normal vector is defined by the two vectors cross, if False, the opposite vector to the normal vector is used. |
References geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| GetAngleRadiansVectors | ( | self, | |
| theShape1, | |||
| theShape2, | |||
theFlag = True |
|||
| ) |
The same as GetAngleVectors, but the result is in radians.
References geomBuilder.GetAngleVectors().
| CurveCurvatureByParam | ( | self, | |
| theCurve, | |||
| theParam | |||
| ) |
Measure curvature of a curve at a point, set by parameter.
| theCurve | a curve. |
| theParam | parameter. |
Example
References geomBuilder.CurveCurvatureByParam(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| CurveCurvatureByPoint | ( | self, | |
| theCurve, | |||
| thePoint | |||
| ) |
Measure curvature of a curve at a point.
| theCurve | a curve. |
| thePoint | given point. |
Example
References geomBuilder.CurveCurvatureByPoint(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| MaxSurfaceCurvatureByParam | ( | self, | |
| theSurf, | |||
| theUParam, | |||
| theVParam | |||
| ) |
Measure max radius of curvature of surface.
| theSurf | the given surface. |
| theUParam | Value of U-parameter on the referenced surface. |
| theVParam | Value of V-parameter on the referenced surface. |
Example
References geomBuilder.MaxSurfaceCurvatureByParam(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| MaxSurfaceCurvatureByPoint | ( | self, | |
| theSurf, | |||
| thePoint | |||
| ) |
Measure max radius of curvature of surface in the given point.
| theSurf | the given surface. |
| thePoint | given point. |
Example
References geomBuilder.MaxSurfaceCurvatureByPoint(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| MinSurfaceCurvatureByParam | ( | self, | |
| theSurf, | |||
| theUParam, | |||
| theVParam | |||
| ) |
Measure min radius of curvature of surface.
| theSurf | the given surface. |
| theUParam | Value of U-parameter on the referenced surface. |
| theVParam | Value of V-parameter on the referenced surface. |
Example
References geomBuilder.MeasuOp, geomBuilder.MinSurfaceCurvatureByParam(), and geomBuilder.RaiseIfFailed().
| MinSurfaceCurvatureByPoint | ( | self, | |
| theSurf, | |||
| thePoint | |||
| ) |
Measure min radius of curvature of surface in the given point.
| theSurf | the given surface. |
| thePoint | given point. |
Example
References geomBuilder.MeasuOp, geomBuilder.MinSurfaceCurvatureByPoint(), and geomBuilder.RaiseIfFailed().
| CurvatureOnFace | ( | self, | |
| theSurf, | |||
| thePoint, | |||
| theDirection, | |||
theName = None |
|||
| ) |
Measure curvature radius of surface in the given point along the given direction.
| theSurf | the given face. |
| thePoint | given point. |
| theDirection | given direction. |
| theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| XYZtoUV | ( | self, | |
| theSurf, | |||
| theXYZlist, | |||
theIsNormalized = True |
|||
| ) |
Convert X,Y,Z points coordinates to UV parameters on the given surface.
| theSurf | the given face. It can be also a shell or a compound with one face. |
| theXYZlist | float list of size 3*N where N is the number of points for which we want their U,V coordinates. If the user enters a list of size not divisible by 3 an exception will be thrown. |
| theIsNormalized | if True, the returned parameters will be in range [0, 1]. |
References geomBuilder.MeasuOp, geomBuilder.RaiseIfFailed(), and geomBuilder.XYZtoUV().
| UVtoXYZ | ( | self, | |
| theSurf, | |||
| theUVlist, | |||
theIsNormalized = True |
|||
| ) |
Convert UV parameters on the given surface to 3D points coordinates.
| theSurf | the given face. It can be also a shell or a compound with one face. |
| theUVlist | float list of size 2*N where N is the number of points for which we want their X,Y,Z coordinates. If the user enters a list of non-even size an exception will be thrown. |
| theIsNormalized | if True, the input parameters are expected to be in range [0, 1]. |
References geomBuilder.MeasuOp, geomBuilder.RaiseIfFailed(), and geomBuilder.UVtoXYZ().
| Tolerance | ( | self, | |
| theShape | |||
| ) |
Get min and max tolerances of sub-shapes of theShape.
| theShape | Shape, to get tolerances of. |
References geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| WhatIs | ( | self, | |
| theShape | |||
| ) |
Obtain description of the given shape (number of sub-shapes of each type)
| theShape | Shape to be described. |
References geomBuilder.MeasuOp, geomBuilder.RaiseIfFailed(), and geomBuilder.WhatIs().
| NbShapes | ( | self, | |
| theShape, | |||
| theType | |||
| ) |
Obtain quantity of shapes of the given type in theShape.
If theShape is of type theType, it is also counted.
| theShape | Shape to be described. |
| theType | the given ShapeType(). |
References GEOM_IShapesOperations.SubShapeAllIDs(), and geomBuilder.SubShapeAllIDs().
| ShapeInfo | ( | self, | |
| theShape | |||
| ) |
Obtain quantity of shapes of each type in theShape.
The theShape is also counted.
| theShape | Shape to be described. |
References geomBuilder.ShapeType, GEOM_IShapesOperations.SubShapeAllIDs(), and geomBuilder.SubShapeAllIDs().
| GetCreationInformation | ( | self, | |
| theShape | |||
| ) |
| MakeCDG | ( | self, | |
| theShape, | |||
theName = None |
|||
| ) |
Get a point, situated at the centre of mass of theShape.
| theShape | Shape to define centre of mass of. |
| theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| GetVertexByIndex | ( | self, | |
| theShape, | |||
| theIndex, | |||
theUseOri = True, |
|||
theName = None |
|||
| ) |
Get a vertex sub-shape by index.
| theShape | Shape to find sub-shape. |
| theIndex | Index to find vertex by this index (starting from zero) |
| theUseOri | To consider edge/wire orientation or not |
| theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.GetVertexByIndex(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| GetFirstVertex | ( | self, | |
| theShape, | |||
theName = None |
|||
| ) |
Get the first vertex of wire/edge depended orientation.
| theShape | Shape to find first vertex. |
| theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References GEOM_IMeasureOperations.GetVertexByIndex(), and geomBuilder.GetVertexByIndex().
| GetLastVertex | ( | self, | |
| theShape, | |||
theName = None |
|||
| ) |
Get the last vertex of wire/edge depended orientation.
| theShape | Shape to find last vertex. |
| theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References GEOM_IMeasureOperations.GetVertexByIndex(), geomBuilder.GetVertexByIndex(), GEOM_IShapesOperations.NumberOfSubShapes(), geomBuilder.NumberOfSubShapes(), and geomBuilder.ShapeType.
| GetNormal | ( | self, | |
| theFace, | |||
theOptionalPoint = None, |
|||
theName = None |
|||
| ) |
Get a normale to the given face.
If the point is not given, the normale is calculated at the center of mass.
| theFace | Face to define normale of. |
| theOptionalPoint | Point to compute the normale at. |
| theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
Example
References geomBuilder._autoPublish(), geomBuilder.GetNormal(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| PrintShapeErrors | ( | self, | |
| theShape, | |||
| theShapeErrors, | |||
theReturnStatus = 0 |
|||
| ) |
Print shape errors obtained from CheckShape.
| theShape | Shape that was checked. |
| theShapeErrors | the shape errors obtained by CheckShape. |
| theReturnStatus | If 0 the description of problem is printed. If 1 the description of problem is returned. |
References geomBuilder.MeasuOp, and geomBuilder.PrintShapeErrors().
| CheckShape | ( | self, | |
| theShape, | |||
theIsCheckGeom = False, |
|||
theReturnStatus = 0, |
|||
theIsExact = False |
|||
| ) |
Check a topology of the given shape.
| theShape | Shape to check validity of. |
| theIsCheckGeom | If FALSE, only the shape's topology will be checked, if TRUE, the shape's geometry will be checked also. |
| theReturnStatus | It can be one of [-1, 0, 1, 2]. Regulates the return value and output of the function. |
| theIsExact | If TRUE, take into account exact tolerance of edges. It can take more time. Exact tolerance can be greater than the approximate one, which is calculated only in some points of edge. |
References geomBuilder.MeasuOp, geomBuilder.PrintShapeErrors(), and geomBuilder.RaiseIfFailed().
| CheckSelfIntersections | ( | self, | |
| theShape, | |||
theCheckLevel = GEOM.SI_ALL |
|||
| ) |
Detect self-intersections in the given shape.
| theShape | Shape to check. |
| theCheckLevel | is the level of self-intersection check. Possible input values are:
|
References geomBuilder.CheckSelfIntersections(), geomBuilder.EnumToLong(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| CheckSelfIntersectionsFast | ( | self, | |
| theShape, | |||
theDeflection = 0.001, |
|||
theTolerance = 0.0 |
|||
| ) |
Detect self-intersections of the given shape with algorithm based on mesh intersections.
| theShape | Shape to check. |
| theDeflection | Linear deflection coefficient that specifies quality of tessellation:
|
| theTolerance | Specifies a distance between sub-shapes used for detecting gaps:
|
References geomBuilder.CheckSelfIntersectionsFast(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| CheckBOPArguments | ( | self, | |
| theShape | |||
| ) |
Check boolean and partition operations arguments.
| theShape | the argument of an operation to be checked |
References geomBuilder.CheckBOPArguments(), and geomBuilder.MeasuOp.
| ExtractBOPFailure | ( | self, | |
| theShapes, | |||
theTimer = False, |
|||
theTopo = False, |
|||
theParallel = False, |
|||
theExact = False, |
|||
theVerbose = False, |
|||
theName = None |
|||
| ) |
Performs general fuse BOP on the given list of shapes and extracts CheckShape information from its invalid result.
| theShapes | List of shapes for the BOP. |
| theTimer | If True, the execution time of the operation is measured. |
| theTopo | If True, only the topological entities will be checked. |
| theParallel | If True, the operation will be executed in parallel. |
| theExact | If True, an exact check will be performed. |
| theVerbose | If True, prints execution errors and resulting shape errors. |
| theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.ExtractBOPFailure(), geomBuilder.MeasuOp, GEOM_IMeasureOperations.PrintShapeErrors(), and geomBuilder.PrintShapeErrors().
| FastIntersect | ( | self, | |
| theShape1, | |||
| theShape2, | |||
theTolerance = 0.0, |
|||
theDeflection = 0.001 |
|||
| ) |
Detect intersections of the given shapes with algorithm based on mesh intersections.
| theShape1 | First source object |
| theShape2 | Second source object |
| theTolerance | Specifies a distance between shapes used for detecting gaps:
|
| theDeflection | Linear deflection coefficient that specifies quality of tessellation:
|
References geomBuilder.FastIntersect(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| GetPosition | ( | self, | |
| theShape | |||
| ) |
Get position (LCS) of theShape.
Origin of the LCS is situated at the shape's center of mass. Axes of the LCS are obtained from shape's location or, if the shape is a planar face, from position of its plane.
| theShape | Shape to calculate position of. |
Example
References geomBuilder.GetPosition(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| KindOfShape | ( | self, | |
| theShape | |||
| ) |
Get kind of theShape.
| theShape | Shape to get a kind of. |
Example
References geomBuilder.kind, geomBuilder.KindOfShape(), geomBuilder.MeasuOp, and geomBuilder.RaiseIfFailed().
| PatchFace | ( | self, | |
| theShape | |||
| ) |
The function takes a single face with holes and returns a list of faces, first of them is the original face without holes, and the other faces are placed on the same surface as the original face but bounded by each hole wire.
If the original face has no holes, it will be returned as an output
| theShape | Face to perform operation on. |
References geomBuilder.MeasuOp, geomBuilder.PatchFace(), and geomBuilder.RaiseIfFailed().
|
protected |
Returns the string that describes if the shell is good for solid.
This is a support method for MakeSolid.
| theShell | the shell to be checked. |
References geomBuilder.MeasuOp.
| CanonicalRecognition | ( | self | ) |
Obtain a canonical recognition interface.