rs3.Geometry module#

class rs3.Geometry.Geometry#

Bases: object

class rs3.Geometry.Point(x: float, y: float, z: float)#

Bases: Geometry

x: float#
y: float#
z: float#
toCommonGeometryObject()#
class rs3.Geometry.Polyline(points: list[rs3.Geometry.Point])#

Bases: Geometry

points: list[Point]#
toCommonGeometryObject()#
class rs3.Geometry.Cube(corner1: Point, corner2: Point, rotationAboutX: float = 0, rotationAboutY: float = 0, rotationAboutZ: float = 0)#

Bases: Geometry

Represents a 3D cube defined by two opposite corners and optional rotations.

The rotation angles (rotationAboutX, rotationAboutY, rotationAboutZ) are in degrees and follow the right-hand rule for positive direction. i.e., positive rotation is counterclockwise when looking along the axis toward the origin.

corner1: Point#
corner2: Point#
rotationAboutX: float = 0#
rotationAboutY: float = 0#
rotationAboutZ: float = 0#
toCommonGeometryObject()#
class rs3.Geometry.Cylinder(axisStartPoint: rs3.Geometry.Point, axisEndPoint: rs3.Geometry.Point, radius: float)#

Bases: Geometry

axisStartPoint: Point#
axisEndPoint: Point#
radius: float#
toCommonGeometryObject()#
class rs3.Geometry.Sphere(center: rs3.Geometry.Point, radius: float)#

Bases: Geometry

center: Point#
radius: float#
toCommonGeometryObject()#