webcface.geometries module

class webcface.geometries.Box(properties: Sequence[SupportsFloat])[source]

Bases: Geometry

property vertex1: Point
property vertex2: Point
class webcface.geometries.Circle(properties: Sequence[SupportsFloat])[source]

Bases: Geometry

property origin: Transform
property radius: float
class webcface.geometries.Cylinder(properties: Sequence[SupportsFloat])[source]

Bases: Geometry

property length: float
property origin: Transform
property radius: float
class webcface.geometries.Geometry(geometry_type: int, properties: Sequence[SupportsFloat])[source]

Bases: object

property as_box: Box
property as_circle: Circle
property as_cylinder: Cylinder
property as_line: Line
property as_plane: Plane
property as_polygon: Polygon
property as_rect: Plane
property as_sphere: Sphere
property type: int
class webcface.geometries.GeometryType(value)[source]

Bases: IntEnum

An enumeration.

BOX = 3
CIRCLE = 4
CYLINDER = 5
LINE = 1
NONE = 0
PLANE = 2
POLYGON = 7
RECT = 2
SPHERE = 6
class webcface.geometries.Line(properties: Sequence[SupportsFloat])[source]

Bases: Geometry

property begin: Point
property end: Point
class webcface.geometries.Plane(properties: Sequence[SupportsFloat])[source]

Bases: Geometry

property height: float
property origin: Transform
property vertex1: Point
property vertex2: Point
property width: float
class webcface.geometries.Polygon(properties: Sequence[SupportsFloat])[source]

Bases: Geometry

property points: List[Point]
class webcface.geometries.Sphere(properties: Sequence[SupportsFloat])[source]

Bases: Geometry

property origin: Point
property radius: float
webcface.geometries.box(vertex1: Point | Sequence[SupportsFloat], vertex2: Point | Sequence[SupportsFloat]) Box[source]
webcface.geometries.circle(origin: Point | Sequence[SupportsFloat] | Transform | Rotation | Tuple[Point | Sequence[SupportsFloat], Rotation | SupportsFloat], radius: SupportsFloat) Circle[source]
webcface.geometries.cylinder(origin: Point | Sequence[SupportsFloat] | Transform | Rotation | Tuple[Point | Sequence[SupportsFloat], Rotation | SupportsFloat], radius: SupportsFloat, length: SupportsFloat) Cylinder[source]
webcface.geometries.line(begin: Point | Sequence[SupportsFloat], end: Point | Sequence[SupportsFloat]) Line[source]
webcface.geometries.plane(origin: Transform | Rotation | Tuple[Point | Sequence[SupportsFloat], Rotation | SupportsFloat], width: SupportsFloat, height: SupportsFloat) Plane[source]
webcface.geometries.polygon(points: Sequence[Point | Sequence[SupportsFloat]]) Polygon[source]
webcface.geometries.rect(begin: Point | Sequence[SupportsFloat], end: Point | Sequence[SupportsFloat]) Plane[source]
webcface.geometries.sphere(origin: Point | Sequence[SupportsFloat], radius: SupportsFloat) Sphere[source]