pylib.geometry module¶
Geometry objects.
- Date
2019-12-21
Affine transforms¶
Functions in augmented space, in homogenous coordinates. Points are augment to 4 dimensions, by adding a dummy coordinate. For points the dummy coordinate is always normalized to 1. With homogenous coordinates translation of points is repesentable as a linear transformation.
-
class
CS(x=[1, 0, 0], y=[0, 1, 0], z=[0, 0, 1])[source]¶ Bases:
pylib.mathematics.matrixCoordinate system
-
class
Circle(radius=1, n=10)[source]¶ Bases:
pylib.geometry.PolygonCircle a closed wireframe object in local coordinate system
-
class
Direction(x=1, y=0, z=0)[source]¶ Bases:
pylib.mathematics.vectorDirection in local coordinate system
-
class
Hexahedron(point1=vector([-1, -1, -1, 1]), point2=vector([1, -1, -1, 1]), point3=vector([1, 1, -1, 1]), point4=vector([-1, 1, -1, 1]), point5=vector([-1, -1, 1, 1]), point6=vector([1, -1, 1, 1]), point7=vector([1, 1, 1, 1]), point8=vector([-1, 1, 1, 1]))[source]¶ Bases:
pylib.geometry.SolidLine a open wireframe object in local coordinate system
-
class
Line(point1=vector([-1, 0, 0, 1]), point2=vector([1, 0, 0, 1]))[source]¶ Bases:
pylib.geometry.WireframeLine a open wireframe object in local coordinate system
-
class
Point(x=0, y=0, z=0)[source]¶ Bases:
pylib.mathematics.vectorPoint in local coordinate system
-
class
Polygon(*points)[source]¶ Bases:
pylib.geometry.WireframePolygon as closed wireframe object in local coordinate system
-
class
Solid(*wireframes)[source]¶ Bases:
objectSolid object in local coordinate system
This class lists Wireframe objects. The Wireframe class create its own points (copy).
-
class
Wireframe(*points, closed=False)[source]¶ Bases:
objectOpen and closed wireframe object in local coordinate system
This class create its own points (copy).