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
ArcBSplineCurveWithKnots(degree, control_points, knot_multiplicities, knots, start, end, n=5)[source]¶ Bases:
pylib.geometry.PolylineB-spline curve with knots, an open wireframe object in local coordinate system
-
class
ArcCircle(radius=1, ang1=0, ang2=1.5707963267948966, n=None)[source]¶ Bases:
pylib.geometry.PolylineArc of a circle, an open wireframe object in local coordinate system
-
class
ArcEllipse(a=1, b=1, ang1=0, ang2=1.5707963267948966, n=None)[source]¶ Bases:
pylib.geometry.PolylineArc of an ellipse, an open wireframe object in local coordinate system
-
class
B_spline_curve_with_knots(degree, control_points, knot_multiplicities, knots, n=5)[source]¶ Bases:
pylib.geometry.PolylineB-spline curve with knots, an open wireframe object in local coordinate system
-
class
CS(x=vector([1, 0, 0, 0]), y=vector([0, 1, 0, 0]), z=vector([0, 0, 1, 0]))[source]¶ Bases:
pylib.mathematics.matrixCoordinate system
-
class
Circle(radius=1, n=None)[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
Ellipse(a=1, b=1, n=None)[source]¶ Bases:
pylib.geometry.PolygonCircle, a closed wireframe object 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.PolylineLine, an 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.PolylinePolygon as closed wireframe object in local coordinate system
-
class
Polyline(*points, closed=False)[source]¶ Bases:
objectOpen and closed wireframe object in local coordinate system
This class create its own points (copy).
-
class
Solid(*wireframes)[source]¶ Bases:
objectSolid object in local coordinate system
This class lists Wireframe objects. The Wireframe class create its own points (copy).