Repository navigation
v0.1.0a3
Pre-release
Pre-release
Breaking API changes
polygon()andrectangle()return closedPath2Dboundaries. Fill them withprofile().rectangle()is centred oncenterinstead of starting atorigin.extrude(),revolve(),sweep(), andloft()accept only aProfileand raiseTypeErrorfor curves and paths.box()andcylinder()are centred in XY with their base at z = 0, andoriginis removed. Position them withplace()ortranslate().- Renamed:
loft(interpolation_deg=)toloft(degree=),spline()tospline3d(),Face.centertoFace.centroid, andFace.normaltoFace.planar_normal. a - braisesEmptyResultError, aValueErrorsubclass, when no material remains.difference()still returnsNone.
Modeling
place(shape, plane)carries a shape from world XY onto a plane, andPlane.offset()moves a plane along its own axes, for exampleplace(stud, Plane.from_face(top).offset(x=3)).union()accepts any number of shapes and combines them in one kernel operation.a & bintersects two shapes and raisesEmptyResultErrorwhen they share no material.intersection()still returnsNone.polyline()builds open planar paths.profile()accepts a single closed curve, soprofile(circle(radius=5))fills a disk, and rectangles, polygons, and circles can all be holes.cylinder()andcircle()acceptdiameteras an alternative toradius.bounds()returns aBoundsnamed tuple withmin,max,size, andcenter.
Fixes
- Faces, edges, and vertices from separate queries of one shape compare equal and hash alike, so sets and
inwork.fillet()andchamfer()round a repeated edge once instead of failing.
See the API reference for signatures and conventions.