Skip to main content

A volume modeler computation-oriented. Include rendering bindings.

Project description


design3d

A computations-oriented python VOLume MoDeLeR with STEP support for import and export

Description

design3d is a python 3d design package enabling CAD automations. With it, you can easily create 3D models from python code. Check the examples to see what you can do with this library. A hard fork of the discontinued volmdlr project.

A casing is defined by a 2D contour formed with the primitive RoundedLineSegment2D. This contour is offset by the casing width.


A Sweep is pipes, created with Circle2D/Arc2D which is contained in a Contour2D. You have to create the neutral fiber, i.e., the pipe’s road, with the primitive RoundedLineSegment3D.


A polygon is defined out of points. Random points are sampled and the tested whether they are inside or outside the polygon. They are plotted with the Matplotlib binding MPLPlot with custom styles: - red if they are outside, - blue if they are inside


A 3D B-spline surface split by a 3D B-spline curve.


Features

  • Generate 2D and 3D geometries from python
  • Handles complexe geometries : B-spline curves and surfaces
  • Primitives provide computational tasks : distances, belonging, union, intersections, etc.
  • STEP/STL imports and exports
  • Geometries display in your web browser with babylon.js

User Installation

pip install design3d
# or
pip3 install design3d

Dev Installation

Before using design3d, be sure to have a C/C++ compiler (not necessary on Linux).
N.B : With Windows you have to download one and allow it to read Python’s code.

First, clone the package. Then, enter the newly created design3d repository. Finally, develop the setup.py file, and you are good to go !

git clone https://github.com/masfaraud/design3d.git

cd design3d

python3 setup.py develop --user
# or whatever version you are using :
python3.x setup.py develop --user

Usage

See the script folder for examples

Documentation

Yet to be uploaded Can be built from docs folder

License

100% opensource on LGPL license. See LICENSE for more details.

Team and contributors

Credits to the volmdlr project team.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

design3d-0.1.0a5.tar.gz (1.8 MB view details)

Uploaded Source

File details

Details for the file design3d-0.1.0a5.tar.gz.

File metadata

  • Download URL: design3d-0.1.0a5.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for design3d-0.1.0a5.tar.gz
Algorithm Hash digest
SHA256 e70e8488d9586225d6e8f9e057b2d824d255f490af6e62dd011ee0c8a3688012
MD5 40c5b103903bdf21033b12775e712ee4
BLAKE2b-256 e2556bc0fea775f2333cfac0b8c6456ffde391eb31a97a8f3a941d4bcc2b1163

See more details on using hashes here.

Provenance

The following attestation bundles were made for design3d-0.1.0a5.tar.gz:

Publisher: build.yml on masfaraud/design3d

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page