Skip to content

Replaces splines in CAD files with a series of straight edges to allow CAD geometry to be converted to CSG geometry.

License

Notifications You must be signed in to change notification settings

fusion-energy/spline_replacer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Python package for automatically replacing spline edges / faces in CAD geometry.

Spines can not be directly converted to Constructive Solid Geometry (CSG).

Once splines have been removed then CAD to CSG conversion software such as McCad and Geouned can then be used to convert the spline free geometry to CSG.

This technique is based on CadQuery forum post staring in 2022 and getting solved in 2024 by @adam-urbanczyk and @jmwright without whom this package would not be possible.

The edges of the CAD geometry that contain splines are faceted with the user specified tolerances and converted to a series of triangular planar faces.

Other surfaces that convert to CSG such as cylinders, planes, cones etc are not faceted as the can be converted to CSG geometry primitives.

CAD geometry with two spline edges on the upper curve CAD geometry converted to a spline free representation
cad with spines cad without spines

Install

pip install git+git://github.com/fusion-energy/spline_replacer.git

Usage

See the example in the 👉 examples folder

About

Replaces splines in CAD files with a series of straight edges to allow CAD geometry to be converted to CSG geometry.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages