Two-dimensional entities¶
-
class
geom.
Surface2d
¶ Bases:
geom.GeomObj2d
-
class
geom.
HalfPlane2d
¶ Bases:
geom.Surface2d
-
class
geom.
BND2d
¶ Bases:
geom.GeomObj2d
-
area
¶ returns object area.
-
diagonal
¶ returns a vector from PMin to PMax.
-
getCenterOfMass
((BND2d)arg1) → Pos2d :¶ return the center of mass.
- C++ signature :
- Pos2d getCenterOfMass(BND2d {lvalue})
-
getIx
((BND2d)arg1) → float :¶ - C++ signature :
- double getIx(BND2d {lvalue})
-
getIy
((BND2d)arg1) → float :¶ - C++ signature :
- double getIy(BND2d {lvalue})
-
getMax
((BND2d)arg1, (int)arg2) → float :¶ return maximum value of i coordinate.
- C++ signature :
- double getMax(BND2d {lvalue},unsigned short)
-
getMin
((BND2d)arg1, (int)arg2) → float :¶ return minimum value of i coordinate.
- C++ signature :
- double getMin(BND2d {lvalue},unsigned short)
-
getPxy
((BND2d)arg1) → float :¶ - C++ signature :
- double getPxy(BND2d {lvalue})
-
height
¶ returns object height.
-
length
¶ returns object length.
-
pMax
¶ upper right corner.
-
pMin
¶ lower left corner.
-
update
((BND2d)arg1, (Pos2d)arg2) → None :¶ - C++ signature :
- void update(BND2d {lvalue},Pos2d)
-
volume
¶ returns object volume.
-
width
¶ returns object width.
-
-
class
geom.
Circle2d
¶ Bases:
geom.Surface2d
-
getArea
((Circle2d)arg1) → float :¶ Return the object area.
- C++ signature :
- double getArea(Circle2d {lvalue})
-
getCenter
((Circle2d)arg1) → Pos2d :¶ - C++ signature :
- Pos2d getCenter(Circle2d {lvalue})
-
getCenterOfMass
((Circle2d)arg1) → Pos2d :¶ return the center of mass.
- C++ signature :
- Pos2d getCenterOfMass(Circle2d {lvalue})
-
getDiameter
((Circle2d)arg1) → float :¶ Return the object diameter.
- C++ signature :
- double getDiameter(Circle2d {lvalue})
-
getInscribedPolygon
((Circle2d)arg1, (int)arg2, (float)arg3) → Polygon2d :¶ getInscribedPolygon(n,theta_inic) return an inscribed regular polygon with n sides starting in the angle argument
- C++ signature :
- Polygon2d getInscribedPolygon(Circle2d {lvalue},unsigned long,double)
-
getIx
((Circle2d)arg1) → float :¶ - C++ signature :
- double getIx(Circle2d {lvalue})
-
getIy
((Circle2d)arg1) → float :¶ - C++ signature :
- double getIy(Circle2d {lvalue})
-
getPerimeter
((Circle2d)arg1) → float :¶ Return the object perimeter.
- C++ signature :
- double getPerimeter(Circle2d {lvalue})
-
getPxy
((Circle2d)arg1) → float :¶ - C++ signature :
- double getPxy(Circle2d {lvalue})
-
getRadius
((Circle2d)arg1) → float :¶ Return the object radius.
- C++ signature :
- double getRadius(Circle2d {lvalue})
-
-
class
geom.
Surface3d
¶ Bases:
geom.GeomObj3d
-
dist
((Surface3d)arg1, (Pos3d)arg2) → float :¶ Return the distance from point to this surface.
- C++ signature :
- double dist(Surface3d {lvalue},Pos3d)
-
dist2
((Surface3d)arg1, (Pos3d)arg2) → float :¶ Return the squared distance from point to this surface.
- C++ signature :
- double dist2(Surface3d {lvalue},Pos3d)
-
-
class
geom.
D2to3d
¶ Bases:
geom.Surface3d
-
getIVector
((D2to3d)arg1) → Vector3d :¶ Return unary vector i.
- C++ signature :
- Vector3d getIVector(D2to3d {lvalue})
-
getJVector
((D2to3d)arg1) → Vector3d :¶ Return unary vector j.
- C++ signature :
- Vector3d getJVector(D2to3d {lvalue})
-
getKVector
((D2to3d)arg1) → Vector3d :¶ Return unary vector k.
- C++ signature :
- Vector3d getKVector(D2to3d {lvalue})
-
getPlane
((D2to3d)arg1) → Plane3d :¶ - C++ signature :
- Plane getPlane(D2to3d {lvalue})
-
to_2d
((D2to3d)arg1, (Pos3d)arg2) → Pos2d :¶ Return the corresponding 2D point.
- C++ signature :
- Pos2d to_2d(D2to3d {lvalue},Pos3d)
- to_2d( (D2to3d)arg1, (Line3d)arg2) -> Line2d :
Return the corresponding 2D line.
- C++ signature :
- Line2d to_2d(D2to3d {lvalue},Line3d)
- to_2d( (D2to3d)arg1, (Segment3d)arg2) -> Segment2d :
Return the corresponding 2D segment.
- C++ signature :
- Segment2d to_2d(D2to3d {lvalue},Segment3d)
-
to_3d
((D2to3d)arg1, (Pos2d)arg2) → Pos3d :¶ Return the corresponding 3D point.
- C++ signature :
- Pos3d to_3d(D2to3d {lvalue},Pos2d)
- to_3d( (D2to3d)arg1, (Line2d)arg2) -> Line3d :
Return the corresponding 3D line.
- C++ signature :
- Line3d to_3d(D2to3d {lvalue},Line2d)
- to_3d( (D2to3d)arg1, (Segment2d)arg2) -> Segment3d :
Return the corresponding 3D segment.
- C++ signature :
- Segment3d to_3d(D2to3d {lvalue},Segment2d)
-
-
class
geom.
GeneralEquationOfPlane
¶ Bases:
Boost.Python.instance
-
class
geom.
Plane3d
¶ Bases:
geom.Surface3d
-
getAngle
((Plane3d)arg1, (Plane3d)arg2) → float :¶ Return the angle between the planes.
- C++ signature :
- double getAngle(Plane {lvalue},Plane)
- getAngle( (Plane3d)arg1, (Vector3d)arg2) -> float :
Return the angle with the vector.
- C++ signature :
- double getAngle(Plane {lvalue},Vector3d)
- getAngle( (Plane3d)arg1, (Line3d)arg2) -> float :
Return the angle with the line.
- C++ signature :
- double getAngle(Plane {lvalue},Line3d)
- getAngle( (Plane3d)arg1, (Ray3d)arg2) -> float :
Return the angle with the ray.
- C++ signature :
- double getAngle(Plane {lvalue},Ray3d)
- getAngle( (Plane3d)arg1, (Segment3d)arg2) -> float :
Return the angle with the segment.
- C++ signature :
- double getAngle(Plane {lvalue},Segment3d)
-
getBase1
((Plane3d)arg1) → Vector3d :¶ - C++ signature :
- Vector3d getBase1(Plane {lvalue})
-
getBase2
((Plane3d)arg1) → Vector3d :¶ - C++ signature :
- Vector3d getBase2(Plane {lvalue})
-
getIntersLine3d
((Plane3d)arg1, (Line3d)arg2) → Pos3d :¶ TO DEPRECATE return the intersection with the line argument.
- C++ signature :
- Pos3d getIntersLine3d(Plane {lvalue},Line3d)
-
getIntersPlane
((Plane3d)arg1, (Plane3d)arg2) → Line3d :¶ TO DEPRECATE return the intersection with the plane argument.
- C++ signature :
- Line3d getIntersPlane(Plane {lvalue},Plane)
-
getIntersRay3d
((Plane3d)arg1, (Ray3d)arg2) → Pos3d :¶ TO DEPRECATE return the intersection with the ray argument.
- C++ signature :
- Pos3d getIntersRay3d(Plane {lvalue},Ray3d)
-
getIntersSegment3d
((Plane3d)arg1, (Segment3d)arg2) → Pos3d :¶ TO DEPRECATE return the intersection with the segment argument.
- C++ signature :
- Pos3d getIntersSegment3d(Plane {lvalue},Segment3d)
-
getIntersection
((Plane3d)arg1, (Plane3d)arg2) → Line3d :¶ return the intersection with the plane argument.
- C++ signature :
- Line3d getIntersection(Plane {lvalue},Plane)
- getIntersection( (Plane3d)arg1, (Line3d)arg2) -> Pos3d :
return the intersection with the line argument.
- C++ signature :
- Pos3d getIntersection(Plane {lvalue},Line3d)
- getIntersection( (Plane3d)arg1, (Ray3d)arg2) -> Pos3d :
return the intersection with the ray argument.
- C++ signature :
- Pos3d getIntersection(Plane {lvalue},Ray3d)
- getIntersection( (Plane3d)arg1, (Segment3d)arg2) -> Pos3d :
return the intersection with the segment argument.
- C++ signature :
- Pos3d getIntersection(Plane {lvalue},Segment3d)
- getIntersection( (Plane3d)arg1, (Polygon3d)arg2) -> Segment3d :
return the intersection with the polygon argument.
- C++ signature :
- Segment3d getIntersection(Plane {lvalue},Polygon3d)
-
getNormal
((Plane3d)arg1) → Vector3d :¶ return the plane normal.
- C++ signature :
- Vector3d getNormal(Plane {lvalue})
-
getProjection
((Plane3d)arg1, (Pos3d)arg2) → Pos3d :¶ Return the projection of the point.
- C++ signature :
- Pos3d getProjection(Plane {lvalue},Pos3d)
- getProjection( (Plane3d)arg1, (Vector3d)arg2) -> Vector3d :
Return the projection of the vector.
- C++ signature :
- Vector3d getProjection(Plane {lvalue},Vector3d)
- getProjection( (Plane3d)arg1, (Line3d)arg2) -> Line3d :
Return the projection of the line.
- C++ signature :
- Line3d getProjection(Plane {lvalue},Line3d)
- getProjection( (Plane3d)arg1, (Ray3d)arg2) -> Ray3d :
Return the projection of the ray.
- C++ signature :
- Ray3d getProjection(Plane {lvalue},Ray3d)
- getProjection( (Plane3d)arg1, (Segment3d)arg2) -> Segment3d :
Return the projection of the segment.
- C++ signature :
- Segment3d getProjection(Plane {lvalue},Segment3d)
-
getXYTrace
((Plane3d)arg1) → Line3d :¶ return the trace on the XY plane.
- C++ signature :
- Line3d getXYTrace(Plane {lvalue})
-
getXZTrace
((Plane3d)arg1) → Line3d :¶ return the trace on the XZ plane.
- C++ signature :
- Line3d getXZTrace(Plane {lvalue})
-
getYZTrace
((Plane3d)arg1) → Line3d :¶ return the trace on the YZ plane.
- C++ signature :
- Line3d getYZTrace(Plane {lvalue})
-
linearLeastSquaresFitting
((Plane3d)arg1, (PolyPos3d)arg2) → float :¶ compute the plane that best suits the point cloud.
- C++ signature :
- double linearLeastSquaresFitting(Plane {lvalue},PolyPos<Pos3d>)
-
negativeSide
((Plane3d)arg1, (Pos3d)arg2) → bool :¶ return true if the point is on the negative side of the plane (local coordinate z<0).
- C++ signature :
- bool negativeSide(Plane {lvalue},Pos3d)
-
positiveSide
((Plane3d)arg1, (Pos3d)arg2) → bool :¶ return true if the point is on the positive side of the plane (local coordinate z>0).
- C++ signature :
- bool positiveSide(Plane {lvalue},Pos3d)
-
-
class
geom.
Polygon3d
¶ Bases:
geom.D2to3d
-
appendVertex
((Polygon3d)arg1, (Pos3d)arg2) → None :¶ Append the vertex to this polygon.
- C++ signature :
- void appendVertex(Polygon3d {lvalue},Pos3d)
-
clip
((Polygon3d)arg1, (Line3d)arg2) → Segment3d :¶ Clips the line by the polygonal surface.
- C++ signature :
- Segment3d clip(Polygon3d {lvalue},Line3d)
- clip( (Polygon3d)arg1, (Ray3d)arg2) -> Segment3d :
Clips the ray by the polygonal surface.
- C++ signature :
- Segment3d clip(Polygon3d {lvalue},Ray3d)
- clip( (Polygon3d)arg1, (Segment3d)arg2) -> Segment3d :
Clips the segment by the polygonal surface.
- C++ signature :
- Segment3d clip(Polygon3d {lvalue},Segment3d)
-
clockwise
((Polygon3d)arg1, (Pos3d)arg2) → bool :¶ clockwise(vPoint) return true if polygon is clockwise oriented with respect to the point of view argument.
- C++ signature :
- bool clockwise(Polygon3d {lvalue},Pos3d)
-
counterclockwise
((Polygon3d)arg1, (Pos3d)arg2) → bool :¶ counterclockwise(vPoint) return true if the polygon is counterclockwise oriented with respect to the point of view argument.
- C++ signature :
- bool counterclockwise(Polygon3d {lvalue},Pos3d)
-
dist
((Polygon3d)arg1, (Pos3d)arg2) → float :¶ Return the distance from point to this polygon.
- C++ signature :
- double dist(Polygon3d {lvalue},Pos3d)
-
getArea
((Polygon3d)arg1) → float :¶ Return the object area.
- C++ signature :
- double getArea(Polygon3d {lvalue})
-
getCenterOfMass
((Polygon3d)arg1) → Pos3d :¶ return the center of mass.
- C++ signature :
- Pos3d getCenterOfMass(Polygon3d {lvalue})
-
getEdge
((Polygon3d)arg1, (int)arg2) → Segment3d :¶ Return the i-th edge.
- C++ signature :
- Segment3d getEdge(Polygon3d {lvalue},unsigned int)
-
getIndexOfDistalEdge
((Polygon3d)arg1, (Pos3d)arg2) → int :¶ Return the index of the distal edge with respect to the point argument.
- C++ signature :
- int getIndexOfDistalEdge(Polygon3d {lvalue},Pos3d)
-
getIndexOfDistalVertex
((Polygon3d)arg1, (Pos3d)arg2) → int :¶ Return the index of the distal vertex with respect to the point argument.
- C++ signature :
- int getIndexOfDistalVertex(Polygon3d {lvalue},Pos3d)
-
getIndexOfProximalEdge
((Polygon3d)arg1, (Pos3d)arg2) → int :¶ Return the index of the proximal edge with respect to the point argument.
- C++ signature :
- int getIndexOfProximalEdge(Polygon3d {lvalue},Pos3d)
-
getIndexOfProximalVertex
((Polygon3d)arg1, (Pos3d)arg2) → int :¶ Return the index of the proximal vertex with respect to the point argument.
- C++ signature :
- int getIndexOfProximalVertex(Polygon3d {lvalue},Pos3d)
-
getIntersection
((Polygon3d)arg1, (Plane3d)arg2) → Segment3d :¶ return the intersection with the plane argument.
- C++ signature :
- Segment3d getIntersection(Polygon3d {lvalue},Plane)
-
getPerimeter
((Polygon3d)arg1) → float :¶ Return the object perimeter.
- C++ signature :
- double getPerimeter(Polygon3d {lvalue})
-
getVertex
((Polygon3d)arg1, (int)arg2) → Pos3d :¶ Return the i-th vertex.
- C++ signature :
- Pos3d getVertex(Polygon3d {lvalue},unsigned int)
-
getVertexList
((Polygon3d)arg1) → list :¶ Return a Python list containing the positions of the polygon vertices.
- C++ signature :
- boost::python::list getVertexList(Polygon3d {lvalue})
-
orientation
((Polygon3d)arg1, (Pos3d)arg2) → str :¶ orientation(vPoint) return the orientation of the polygon with respect to the point of view argument.
- C++ signature :
- std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > orientation(Polygon3d {lvalue},Pos3d)
-
-
class
geom.
Triangle3d
¶ Bases:
geom.Polygon3d
-
class
geom.
Grid2d
¶ Bases:
geom.Surface2d
-
In
((Grid2d)arg1, (Pos2d)arg2, (float)arg3) → bool :¶ - C++ signature :
- bool In(Grid2d {lvalue},Pos2d,double)
-
Ix
((Grid2d)arg1) → float :¶ - C++ signature :
- double Ix(Grid2d {lvalue})
-
Iy
((Grid2d)arg1) → float :¶ - C++ signature :
- double Iy(Grid2d {lvalue})
-
Pxy
((Grid2d)arg1) → float :¶ - C++ signature :
- double Pxy(Grid2d {lvalue})
-
getArea
((Grid2d)arg1) → float :¶ Return the object area.
- C++ signature :
- double getArea(Grid2d {lvalue})
-
getCenterOfMass
((Grid2d)arg1) → Pos2d :¶ return the center of mass.
- C++ signature :
- Pos2d getCenterOfMass(Grid2d {lvalue})
-
getMax
((Grid2d)arg1, (int)arg2) → float :¶ - C++ signature :
- double getMax(Grid2d {lvalue},unsigned short)
-
getMin
((Grid2d)arg1, (int)arg2) → float :¶ - C++ signature :
- double getMin(Grid2d {lvalue},unsigned short)
-
getPoint
((Grid2d)arg1, (int)arg2, (int)arg3) → Pos2d :¶ - C++ signature :
- Pos2d getPoint(Grid2d {lvalue},unsigned long,unsigned long)
-
getPoints
((Grid2d)arg1) → MatrixPos2d :¶ - C++ signature :
- Pos2dArray {lvalue} getPoints(Grid2d {lvalue})
-
getQuad
((Grid2d)arg1, (int)arg2, (int)arg3) → Quadrilateral2d :¶ - C++ signature :
- Quadrilateral2d getQuad(Grid2d {lvalue},unsigned long,unsigned long)
-