Skip to content

Taack/cad-builder

Repository files navigation

DSL for CAD Bodies and Assemblies

The purpose of this tool is to share 3D parts and assemblies like java class binaries.

Building

Install opencascade binary package (Here on Arch)
yay -S opencascade

Check headers are here, at the expected location:

Many Headers
ls /usr/include/opencascade | wc
   7598   53186 1138547
Launch Main App
./gradlew cad-dsl:run
cad builder
Figure 1. Output

Sample

Get inspiration from CAD Query, but using Groovy DSL.

Sample Code
@Test
void "Pillow Block With Counterbored Holes"() {
    cb().box(length, height, thickness).topZ()
        .rect(length - diameter, height - diameter) {
            hole(diameter)
    }.display("test3.png", 640, 480)
}
Warning
ATM counterboredHole is implemented as a simple hole
test3
Figure 2. Renderer

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors