geometry_kit_3d 0.1.0
geometry_kit_3d: ^0.1.0 copied to clipboard
Immutable 3D solids for Dart — volume, surface area, ray picking, cross-sections, extrusion and revolution of geometry_kit 2D shapes, meshes with OBJ/STL export.
0.1.0 #
Initial release.
Math #
Point3,Quaternion,Ray3,Segment3,Plane,PlaneFrame,Aabb.Transform3: position, rotation and uniform scale, withapply,inverse, composition andapplyTo(Solid).Quaternion.toAxisAngle();Ray3.closestPointOnLinefor axis dragging.
Solids #
Solidinterface:volume,surfaceArea,bounds,contains,closestPoint,distanceTo,intersectRay, transforms,toMesh.Sphere,Box(oriented by aQuaternion),Cylinder,Cone.RevolvedSolidbase: exact ray, containment and closest-point queries from a 2D profile.Sphere.intersects(exact against every solid),Box.intersectsBox(separating axis test),nearestHitfor picking.
Bridges from 2D #
Prism.extrude(Polygon, height:)— concave plans supported.SolidOfRevolution(List<Point>)— lathe a profile such as a sampledSpline.Cone.slice/Sphere.slice→ sealedCrossSection(CircleSection,EllipseSection,ParabolaSection,HyperbolaSection,EmptySection) with geometry_kitCircle/Ellipse/Polygonresults.
Meshes and camera #
Meshwith volume, surface area, merge, transforms, packed GPU buffers,toObj()andtoStl();MeshBuilder.OrbitCamerawithprojectandrayThroughfor screen ↔ world;view()returns aCameraViewthat computes the camera axes once for bulk projection;zoom/withDistanceclamp tominDistance…maxDistance.
