All Projects → codelv → Declaracad

codelv / Declaracad

Licence: gpl-3.0
A declarative 3D modeling application built using Open Cascade and python

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Declaracad

Toronto 3d
A Large-scale Mobile LiDAR Dataset for Semantic Segmentation of Urban Roadways
Stars: ✭ 69 (-22.47%)
Mutual labels:  3d
Ar Pizza Slicer
5 different shapes!
Stars: ✭ 80 (-10.11%)
Mutual labels:  3d
Three Forcegraph
Force-directed graph as a ThreeJS 3d object
Stars: ✭ 84 (-5.62%)
Mutual labels:  3d
Redgpu
RedGPU - Javascript WebGPU Engine
Stars: ✭ 70 (-21.35%)
Mutual labels:  3d
Trails
Simple geometrical trail to attach to your Three.js objects
Stars: ✭ 79 (-11.24%)
Mutual labels:  3d
Openmesheffect
A low-overhead mesh-processing plug-in API for cross-software procedural effects
Stars: ✭ 82 (-7.87%)
Mutual labels:  3d
Frustum Pointnets
Frustum PointNets for 3D Object Detection from RGB-D Data
Stars: ✭ 1,154 (+1196.63%)
Mutual labels:  3d
Simulator
A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Stars: ✭ 1,260 (+1315.73%)
Mutual labels:  3d
Icellr
Single (i) Cell R package (iCellR) is an interactive R package to work with high-throughput single cell sequencing technologies (i.e scRNA-seq, scVDJ-seq, ST and CITE-seq).
Stars: ✭ 80 (-10.11%)
Mutual labels:  3d
Scanrefer
[ECCV 2020] ScanRefer: 3D Object Localization in RGB-D Scans using Natural Language
Stars: ✭ 84 (-5.62%)
Mutual labels:  3d
Votenet
Deep Hough Voting for 3D Object Detection in Point Clouds
Stars: ✭ 1,183 (+1229.21%)
Mutual labels:  3d
Spatialmath Python
Create, manipulate and convert representations of position and orientation in 2D or 3D using Python
Stars: ✭ 78 (-12.36%)
Mutual labels:  3d
Fornos
GPU Texture Baking Tool
Stars: ✭ 82 (-7.87%)
Mutual labels:  3d
Unity Plane Mesh Splitter
Unity Plane Mesh Splitter
Stars: ✭ 71 (-20.22%)
Mutual labels:  3d
Helixjs
A Javascript 3D game engine.
Stars: ✭ 84 (-5.62%)
Mutual labels:  3d
Vanta
Animated 3D backgrounds for your website
Stars: ✭ 1,162 (+1205.62%)
Mutual labels:  3d
Rotate 3d
3D Rotation image along specific axes
Stars: ✭ 81 (-8.99%)
Mutual labels:  3d
Doom Nano
A 3d raycast engine for Arduino
Stars: ✭ 86 (-3.37%)
Mutual labels:  3d
Brats17
Patch-based 3D U-Net for brain tumor segmentation
Stars: ✭ 85 (-4.49%)
Mutual labels:  3d
Starviewer
Starviewer, a cross-platform open source medical imaging software
Stars: ✭ 83 (-6.74%)
Mutual labels:  3d

declaracad

Build Status Build status codecov

A declarative parametric 3D modeling program built using OpenCASCADE and enaml.

See the new website at declaracad.com

Warning: This is a very early in development and unstable application!

DeclaraCAD

It's similar to OpenSCAD in that everything is intended to be defined programatically. However the language being used is enaml (a superset of python) instead of javascript. Python users/developers will find this very easy and intuitive.

It's intended to be used along side of an OCC python binding (either pythonocc or pyOCCT) using either OCC apis directly or the declarative abstractions. You can easily combind parts from various sources into assemblies.

Now uses pyOCCT but was originally based on pythonocc (and I highly recommend pyOCCT!),

See the project site.

Features

Modeling

Currently the following 3D features can be used declaratively:

  1. Basic shapes (Box, Sphere, Cylinder, Wedge, Torus) see shapes
  2. Boolean operations (Cut, Fuse, Common) see algo
  3. Fillet and Chamfer edges see algo
  4. 3D Drawing (Lines, Arcs, BSplines, Beziers, Circles, etc...) see draw
  5. Pipes algo
  6. Extrude (Prism), LinearForm, RevolutionForm algo
  7. ThickSolid, ThroughSections algo

See the examples and the occ package.

You can also embed any shape built using pythonocc directly via a RawShape. See the sprocket example

Viewer

Declaracad uses pythonocc's Qt Viewer and supports basic rotate, pan, zoom. Each view is rendered in a separate process.

Clipping planes are now supported.

declaracad-3d-view-clip-planes

Editor

Multiple editor views are supported. Basic error checking hinting is implemented.

Import / export

Currently there is no import support from other 3d types into editable code, but models can be loaded for display and exported to STL, STEP, or images.

DeclaraCAD - loading models

Importing 2D paths from SVG (ex Adobe Illustrator, Inkscape, etc..) is possible

DeclaraCAD import from svg

Models can be exported to STL or STEP formats for use in other programs (ex Simplify3D, FreeCAD, etc..)

DeclaraCAD export to stl

Example

This is generates a turners cube of a given number of levels.

from enaml.core.api import Looper
from declaracad.occ.api import Box, Sphere, Cut, Part

enamldef TurnersCube(Part):
    name = "Turners Cube"

    attr levels: int = 3
    Looper:
        iterable << range(1,1+levels)
        Cut:
            Box:
                position = (-loop_item/2.0,-loop_item/2.0,-loop_item/2.0)
                dx = loop_item
                dy = loop_item
                dz = loop_item
            Sphere:
                radius = loop_item/1.5

Docs

The goal is for the building blocks or components to be self documenting.

It's partially there... suggestions are welcome!

DeclaraCAD - Docs and Toolbox

Installing

There is currently no installer as it's in pre-alpha state. It runs on windows and linux (have not yet tested osx). To use it:

#: Install conda or miniconda
#: See https://conda.io/miniconda.html

#: Create a conda env
conda create -n declaracad

#: Activate it (on windows just do `activate declaracad`)
source activate declaracad

#: Install it OCCT and dependencies
conda install -c trelau -c conda-forge pyocct

#: Clone the repo
git clone https://github.com/codelv/declaracad.git

#: Go inside the cloned repo
cd declaracad

#: Install declaracad
pip install -e .

See running section.

Running

To run the full application just run declaracad.

declaracad

If you want to use your own editor you can run only a view using

declaracad view <path/to/model.enaml>

Use declaracad -h and declaracad <cmd> -h to see more cli options.

License

The application is released under the GPL v3 (due to the use of PyQt5 and QScintilla).

Special thanks to

This project relies on the groundwork laid out by these projects:

Please share your appreciation to them for all the hard work creating these projects!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].