Crate csgrs

Source
Expand description

A fast, optionally multithreaded Constructive Solid Geometry (CSG) library, built around Boolean operations (union, difference, intersection, xor) on sets of polygons stored in BSP trees.

Example CSG output

§Features

§Default
  • f64: use f64 as Real
  • stl-io: .stl import/export
  • dxf-io: .dxf import/export
  • chull-io: convex hull and minkowski sum
  • metaballs: enables an implementation of metaballs
  • sdf: signed distance fields (sdf) using fast-surface-nets
  • offset: use geo-buf for offset operations
  • delaunay: use geos spade feature for triangulation
§Optional
  • f32: use f32 as Real, this conflicts with f64
  • parallel: use rayon for multithreading
  • svg-io: create Sketchs from and convert Sketchs to SVG’s
  • truetype-text: create Sketchs using TrueType fonts .ttf
  • hershey-text: create Sketchs using Hershey fonts (.jhf)
  • image-io: make Sketchs from images
  • earcut: use geos earcutr feature for triangulation
  • bevymesh: for conversion to a bevy Mesh

Modules§

errors
float_types
io
mesh
Mesh struct and implementations of the CSGOps trait for Mesh
nurbs
sketch
Sketch struct and implementations of the CSGOps trait for Sketch
traits
voxels