Two-dimensional entities

class geom.Surface2d

Bases: geom.GeomObj2d

getDimension((Surface2d)arg1) int :

Return the dimension of the object.

C++ signature :

unsigned short getDimension(Surface2d {lvalue})

class geom.HalfPlane2d

Bases: geom.Surface2d

In((HalfPlane2d)arg1, (Pos2d)arg2, (float)arg3) bool :

Return true if the argument lies inside this object.

C++ signature :

bool In(HalfPlane2d {lvalue},Pos2d,double)

In( (HalfPlane2d)arg1, (Line2d)arg2, (float)arg3) -> bool :

Return true if the argument lies inside this object.

C++ signature :

bool In(HalfPlane2d {lvalue},Line2d,double)

In( (HalfPlane2d)arg1, (Ray2d)arg2, (float)arg3) -> bool :

Return true if the argument lies inside this object.

C++ signature :

bool In(HalfPlane2d {lvalue},Ray2d,double)

In( (HalfPlane2d)arg1, (Segment2d)arg2, (float)arg3) -> bool :

Return true if the argument lies inside this object.

C++ signature :

bool In(HalfPlane2d {lvalue},Segment2d,double)

In( (HalfPlane2d)arg1, (Polyline2d)arg2, (float)arg3) -> bool :

Return true if the argument lies inside this object.

C++ signature :

bool In(HalfPlane2d {lvalue},Polyline2d,double)

In( (HalfPlane2d)arg1, (Polygon2d)arg2, (float)arg3) -> bool :

Return true if the argument lies inside this object.

C++ signature :

bool In(HalfPlane2d {lvalue},Polygon2d,double)

Out((HalfPlane2d)arg1, (Pos2d)arg2, (float)arg3) bool :

Return true if the argument lies outinside this object.

C++ signature :

bool Out(HalfPlane2d {lvalue},Pos2d,double)

Out( (HalfPlane2d)arg1, (Line2d)arg2, (float)arg3) -> bool :

Return true if the argument lies outinside this object.

C++ signature :

bool Out(HalfPlane2d {lvalue},Line2d,double)

Out( (HalfPlane2d)arg1, (Ray2d)arg2, (float)arg3) -> bool :

Return true if the argument lies outinside this object.

C++ signature :

bool Out(HalfPlane2d {lvalue},Ray2d,double)

Out( (HalfPlane2d)arg1, (Segment2d)arg2, (float)arg3) -> bool :

Return true if the argument lies outinside this object.

C++ signature :

bool Out(HalfPlane2d {lvalue},Segment2d,double)

Out( (HalfPlane2d)arg1, (Polyline2d)arg2, (float)arg3) -> bool :

Return true if the argument lies outinside this object.

C++ signature :

bool Out(HalfPlane2d {lvalue},Polyline2d,double)

Out( (HalfPlane2d)arg1, (Polygon2d)arg2, (float)arg3) -> bool :

Return true if the argument lies outinside this object.

C++ signature :

bool Out(HalfPlane2d {lvalue},Polygon2d,double)

clip((HalfPlane2d)arg1, (Polyline2d)arg2, (float)arg3) list :

Return the polyline chunks that result from clipping the given polyline with this half plane.

C++ signature :

boost::python::list clip(HalfPlane2d {lvalue},Polyline2d,double)

intersects((HalfPlane2d)arg1, (HalfPlane2d)arg2) bool :

return true if the intersection with the given half-plane exists.

C++ signature :

bool intersects(HalfPlane2d {lvalue},HalfPlane2d)

intersects( (HalfPlane2d)arg1, (Line2d)arg2) -> bool :

return true if the intersection with the given line exists.

C++ signature :

bool intersects(HalfPlane2d {lvalue},Line2d)

intersects( (HalfPlane2d)arg1, (Ray2d)arg2) -> bool :

return true if the intersection with the given ray exists.

C++ signature :

bool intersects(HalfPlane2d {lvalue},Ray2d)

intersects( (HalfPlane2d)arg1, (Segment2d)arg2) -> bool :

return true if the intersection with the given segment exists.

C++ signature :

bool intersects(HalfPlane2d {lvalue},Segment2d)

intersects( (HalfPlane2d)arg1, (Polyline2d)arg2) -> bool :

return true if the intersection with the given polyline exists.

C++ signature :

bool intersects(HalfPlane2d {lvalue},Polyline2d)

class geom.BND2d

Bases: geom.GeomObj2d

property area

returns object area.

property 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})

getVertexList((BND2d)arg1) list :

Return a Python list containing the positions of the vertices.

C++ signature :

boost::python::list getVertexList(BND2d {lvalue})

getVertices((BND2d)arg1) list :

Return a Python list containing the positions of the vertices.

C++ signature :

boost::python::list getVertices(BND2d {lvalue})

property height

returns object height.

property length

returns object length.

property pMax

upper right corner.

property pMin

lower left corner.

update((BND2d)arg1, (Pos2d)arg2) None :
C++ signature :

void update(BND2d {lvalue},Pos2d)

property volume

returns object volume.

property width

returns object width.

class geom.Circle2d

Bases: geom.Surface2d

getAngle((Circle2d)arg1, (Pos2d)arg2) float :

Return the angle of the point with respect to the circle.

C++ signature :

double getAngle(Circle2d {lvalue},Pos2d)

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 given angle

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})

offset((Circle2d)arg1, (float)arg2) Circle2d :

returns a parallel circle obtained by adding argument to the radius of this object.

C++ signature :

Circle2d offset(Circle2d {lvalue},double)

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 :

Return the plane that contains the polyline.

C++ signature :

Plane getPlane(D2to3d {lvalue})

to_2d((D2to3d)arg1, (Vector3d)arg2) Vector2d :

Return the corresponding 2D vector.

C++ signature :

Vector2d to_2d(D2to3d {lvalue},Vector3d)

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, (Vector2d)arg2) Vector3d :

Return the corresponding 3D vector.

C++ signature :

Vector3d to_3d(D2to3d {lvalue},Vector2d)

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 :

return the first base vector or local i vector.

C++ signature :

Vector3d getBase1(Plane {lvalue})

getBase2((Plane3d)arg1) Vector3d :

return the second base vector or local j vector.

C++ signature :

Vector3d getBase2(Plane {lvalue})

getIntersLine3d((Plane3d)arg1, (Line3d)arg2) Pos3d :

TO DEPRECATE return the intersection with the given line.

C++ signature :

Pos3d getIntersLine3d(Plane {lvalue},Line3d)

getIntersPlane((Plane3d)arg1, (Plane3d)arg2) Line3d :

TO DEPRECATE return the intersection with the given plane.

C++ signature :

Line3d getIntersPlane(Plane {lvalue},Plane)

getIntersRay3d((Plane3d)arg1, (Ray3d)arg2) Pos3d :

TO DEPRECATE return the intersection with the given ray.

C++ signature :

Pos3d getIntersRay3d(Plane {lvalue},Ray3d)

getIntersSegment3d((Plane3d)arg1, (Segment3d)arg2) Pos3d :

TO DEPRECATE return the intersection with the given segment.

C++ signature :

Pos3d getIntersSegment3d(Plane {lvalue},Segment3d)

getIntersection((Plane3d)arg1, (Plane3d)arg2) Line3d :

return the intersection with the given plane.

C++ signature :

Line3d getIntersection(Plane {lvalue},Plane)

getIntersection( (Plane3d)arg1, (Line3d)arg2) -> Pos3d :

return the intersection with the given line.

C++ signature :

Pos3d getIntersection(Plane {lvalue},Line3d)

getIntersection( (Plane3d)arg1, (Ray3d)arg2) -> Pos3d :

return the intersection with the given ray.

C++ signature :

Pos3d getIntersection(Plane {lvalue},Ray3d)

getIntersection( (Plane3d)arg1, (Segment3d)arg2) -> Pos3d :

return the intersection with the given segment.

C++ signature :

Pos3d getIntersection(Plane {lvalue},Segment3d)

getIntersection( (Plane3d)arg1, (Polygon3d)arg2) -> Segment3d :

return the intersection with the given polygon.

C++ signature :

Segment3d getIntersection(Plane {lvalue},Polygon3d)

getIntersection( (Plane3d)arg1, (Polyline3d)arg2) -> PolyPos3d :

return the intersection with the given polyline.

C++ signature :

PolyPos<Pos3d> getIntersection(Plane {lvalue},Polyline3d)

getNormal((Plane3d)arg1) Vector3d :

return the plane normal or local k vector.

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)

getProjection( (Plane3d)arg1, (list)arg2) -> list :

Return the projection of the points of the given list.

C++ signature :

boost::python::list getProjection(Plane {lvalue},boost::python::list)

getRef((Plane3d)arg1) Ref2d3d :

return a reference frame whose XY plane corresponds to this one.

C++ signature :

Ref2d3d getRef(Plane {lvalue})

getSide((Plane3d)arg1, (Pos3d)arg2) int :

Return 1 if point in positive side, -1 if in negative side or 0 otherwise.

C++ signature :

int getSide(Plane {lvalue},Pos3d)

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})

intersects((Plane3d)arg1, (Plane3d)arg2) bool :

return true if the intersection with the given plane exits.

C++ signature :

bool intersects(Plane {lvalue},Plane)

intersects( (Plane3d)arg1, (Line3d)arg2) -> bool :

return true if the intersection with the given line exists.

C++ signature :

bool intersects(Plane {lvalue},Line3d)

intersects( (Plane3d)arg1, (Ray3d)arg2) -> bool :

return true if the intersection with the given ray exists.

C++ signature :

bool intersects(Plane {lvalue},Ray3d)

intersects( (Plane3d)arg1, (Segment3d)arg2) -> bool :

return true if the intersection with the given segment exists.

C++ signature :

bool intersects(Plane {lvalue},Segment3d)

intersects( (Plane3d)arg1, (Polygon3d)arg2) -> bool :

return true if the intersection with the given polygon exists.

C++ signature :

bool intersects(Plane {lvalue},Polygon3d)

intersects( (Plane3d)arg1, (Polyline3d)arg2) -> bool :

return true if the intersection with the given polyline exists.

C++ signature :

bool intersects(Plane {lvalue},Polyline3d)

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)

signedDist((Plane3d)arg1, (Pos3d)arg2) float :

return signed distance fromt the point to the plane (positive if the point is on the positive side of the plane).

C++ signature :

double signedDist(Plane {lvalue},Pos3d)

signedDist2((Plane3d)arg1, (Pos3d)arg2) float :

return signed squared distance fromt the point to the plane (positive if the point is on the positive side of the plane).

C++ signature :

double signedDist2(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})

getBuffer((Polygon3d)arg1, (float)arg2) Polygon3d :

Returns the buffer (a polygon being the spatial point set collection within a specified maximum distance from this polygon) of this polygon.

C++ signature :

Polygon3d getBuffer(Polygon3d {lvalue},double)

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)

getLambda((Polygon3d)arg1, (Pos3d)arg2) float :

Return the length along the perimeter until the point p is reached.

C++ signature :

double getLambda(Polygon3d {lvalue},Pos3d)

getLengthUpTo((Polygon3d)arg1, (Pos3d)arg2) float :

Return the length along the perimeter until the point p is reached.

C++ signature :

double getLengthUpTo(Polygon3d {lvalue},Pos3d)

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})

offset((Polygon3d)arg1, (float)arg2) Polygon3d :

Return a polygon parallel to this one at the given distance. The new polygon will be exterior if the distance is positive.

C++ signature :

Polygon3d offset(Polygon3d {lvalue},double)

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 :

Return a reference to the 2D point array defining the grid.

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)