Functions | |
def | geompy.NumberOfFaces |
Gives quantity of faces in the given shape. | |
def | geompy.NumberOfEdges |
Gives quantity of edges in the given shape. | |
def | geompy.NumberOfSubShapes |
Gives quantity of sub-shapes of type theShapeType in the given shape. | |
def | geompy.NumberOfSolids |
Gives quantity of solids in the given shape. | |
def | geompy.PointCoordinates |
Get point coordinates. | |
def | geompy.BasicProperties |
Get summarized length of all wires, area of surface and volume of the given shape. | |
def | geompy.BoundingBox |
Get parameters of bounding box of the given shape. | |
def | geompy.Inertia |
Get inertia matrix and moments of inertia of theShape. | |
def | geompy.AreCoordsInside |
Get if coords are included in the shape (ST_IN or ST_ON) | |
def | geompy.MinDistance |
Get minimal distance between the given shapes. | |
def | geompy.MinDistanceComponents |
Get minimal distance between the given shapes. | |
def | geompy.GetAngle |
Get angle between the given shapes in degrees. | |
def | geompy.GetAngleRadians |
Get angle between the given shapes in radians. | |
def | geompy.Tolerance |
Get min and max tolerances of sub-shapes of theShape. | |
def | geompy.WhatIs |
Obtain description of the given shape (number of sub-shapes of each type) | |
def | geompy.NbShapes |
Obtain quantity of shapes of the given type in theShape. | |
def | geompy.ShapeInfo |
Obtain quantity of shapes of each type in theShape. | |
def | geompy.MakeCDG |
Get a point, situated at the centre of mass of theShape. | |
def | geompy.GetVertexByIndex |
Get a vertex sub-shape by index depended with orientation. | |
def | geompy.GetFirstVertex |
Get the first vertex of wire/edge depended orientation. | |
def | geompy.GetLastVertex |
Get the last vertex of wire/edge depended orientation. | |
def | geompy.GetNormal |
Get a normale to the given face. | |
def | geompy.CheckShape |
Check a topology of the given shape. | |
def | geompy.CheckSelfIntersections |
Detect self-intersections in the given shape. | |
def | geompy.GetPosition |
Get position (LCS) of theShape. | |
def | geompy.KindOfShape |
Get kind of theShape. |
Curve Curvature Measurement | |
Methods for receiving radius of curvature of curves in the given point | |
def | geompy.CurveCurvatureByParam |
Measure curvature of a curve at a point, set by parameter. | |
def | geompy.CurveCurvatureByPoint |
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 | |
def | geompy.MaxSurfaceCurvatureByParam |
Measure max radius of curvature of surface. | |
def | geompy.MaxSurfaceCurvatureByPoint |
Measure max radius of curvature of surface in the given point. | |
def | geompy.MinSurfaceCurvatureByParam |
Measure min radius of curvature of surface. | |
def | geompy.MinSurfaceCurvatureByPoint |
Measure min radius of curvature of surface in the given point. |
def geompy.NumberOfFaces | ( | self, | |
theShape | |||
) |
Gives quantity of faces in the given shape.
theShape | Shape to count faces of. |
References geompy.RaiseIfFailed().
def geompy.NumberOfEdges | ( | self, | |
theShape | |||
) |
Gives quantity of edges in the given shape.
theShape | Shape to count edges of. |
References geompy.RaiseIfFailed().
def geompy.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 geompy.RaiseIfFailed().
def geompy.NumberOfSolids | ( | self, | |
theShape | |||
) |
Gives quantity of solids in the given shape.
theShape | Shape to count solids in. |
References geompy.RaiseIfFailed().
def geompy.PointCoordinates | ( | self, | |
Point | |||
) |
def geompy.BasicProperties | ( | self, | |
theShape | |||
) |
Get summarized length of all wires, area of surface and volume of the given shape.
theShape | Shape to define properties of. |
References geompy.RaiseIfFailed().
def geompy.BoundingBox | ( | self, | |
theShape | |||
) |
Get parameters of bounding box of the given shape.
theShape | Shape to obtain bounding box of. |
References geompy.RaiseIfFailed().
def geompy.Inertia | ( | self, | |
theShape | |||
) |
Get inertia matrix and moments of inertia of theShape.
theShape | Shape to calculate inertia of. |
References geompy.RaiseIfFailed().
def geompy.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) |
def geompy.MinDistance | ( | self, | |
theShape1, | |||
theShape2 | |||
) |
Get minimal distance between the given shapes.
theShape1,theShape2 | Shapes to find minimal distance between. |
References geompy.RaiseIfFailed().
def geompy.MinDistanceComponents | ( | self, | |
theShape1, | |||
theShape2 | |||
) |
Get minimal distance between the given shapes.
theShape1,theShape2 | Shapes to find minimal distance between. |
References geompy.RaiseIfFailed().
def geompy.GetAngle | ( | self, | |
theShape1, | |||
theShape2 | |||
) |
Get angle between the given shapes in degrees.
theShape1,theShape2 | Lines or linear edges to find angle between. |
References geompy.RaiseIfFailed().
def geompy.GetAngleRadians | ( | self, | |
theShape1, | |||
theShape2 | |||
) |
Get angle between the given shapes in radians.
theShape1,theShape2 | Lines or linear edges to find angle between. |
References geompy.RaiseIfFailed().
def geompy.CurveCurvatureByParam | ( | self, | |
theCurve, | |||
theParam | |||
) |
Measure curvature of a curve at a point, set by parameter.
theCurve | a curve. |
theParam | parameter. |
Example
References geompy.RaiseIfFailed().
def geompy.CurveCurvatureByPoint | ( | self, | |
theCurve, | |||
thePoint | |||
) |
Measure curvature of a curve at a point.
theCurve | a curve. |
thePoint | given point. |
Example
References geompy.RaiseIfFailed().
def geompy.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 geompy.RaiseIfFailed().
def geompy.MaxSurfaceCurvatureByPoint | ( | self, | |
theSurf, | |||
thePoint | |||
) |
Measure max radius of curvature of surface in the given point.
theSurf | the given surface. |
thePoint | given point. |
Example
References geompy.RaiseIfFailed().
def geompy.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 geompy.RaiseIfFailed().
def geompy.MinSurfaceCurvatureByPoint | ( | self, | |
theSurf, | |||
thePoint | |||
) |
Measure min radius of curvature of surface in the given point.
theSurf | the given surface. |
thePoint | given point. |
Example
References geompy.RaiseIfFailed().
def geompy.Tolerance | ( | self, | |
theShape | |||
) |
Get min and max tolerances of sub-shapes of theShape.
theShape | Shape, to get tolerances of. |
References geompy.RaiseIfFailed().
def geompy.WhatIs | ( | self, | |
theShape | |||
) |
Obtain description of the given shape (number of sub-shapes of each type)
theShape | Shape to be described. |
References geompy.RaiseIfFailed().
def geompy.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 geompy.EnumToLong().
def geompy.ShapeInfo | ( | self, | |
theShape | |||
) |
Obtain quantity of shapes of each type in theShape.
The theShape is also counted.
theShape | Shape to be described. |
References geompy.EnumToLong().
def geompy.MakeCDG | ( | self, | |
theShape | |||
) |
Get a point, situated at the centre of mass of theShape.
theShape | Shape to define centre of mass of. |
References geompy.RaiseIfFailed().
def geompy.GetVertexByIndex | ( | self, | |
theShape, | |||
theIndex | |||
) |
Get a vertex sub-shape by index depended with orientation.
theShape | Shape to find sub-shape. |
theIndex | Index to find vertex by this index (starting from zero) |
References geompy.RaiseIfFailed().
def geompy.GetFirstVertex | ( | self, | |
theShape | |||
) |
Get the first vertex of wire/edge depended orientation.
theShape | Shape to find first vertex. |
References geompy.RaiseIfFailed().
def geompy.GetLastVertex | ( | self, | |
theShape | |||
) |
Get the last vertex of wire/edge depended orientation.
theShape | Shape to find last vertex. |
References geompy.RaiseIfFailed().
def geompy.GetNormal | ( | self, | |
theFace, | |||
theOptionalPoint = 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. |
Example
References geompy.RaiseIfFailed().
def geompy.CheckShape | ( | self, | |
theShape, | |||
theIsCheckGeom = 0 , |
|||
theReturnStatus = 0 |
|||
) |
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 | If FALSE and if theShape is invalid, a description of problem is printed. if TRUE and if theShape is invalid, the description of problem is also returned. |
References geompy.RaiseIfFailed().
def geompy.CheckSelfIntersections | ( | self, | |
theShape | |||
) |
Detect self-intersections in the given shape.
theShape | Shape to check. |
References geompy.RaiseIfFailed().
def geompy.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 geompy.RaiseIfFailed().
def geompy.KindOfShape | ( | self, | |
theShape | |||
) |
Get kind of theShape.
theShape | Shape to get a kind of. |
Example
References geompy.RaiseIfFailed().