building3d
I don't now where this project is heading, so there's no documentation yet.
Installation
python3.10 -m venv venv
source venv/bin/activate
pip install -e .[dev]
sudo apt install cloc # for source code line counting
If you see the following error when running mayavi2:
********************************************************************************
WARNING: Imported VTK version (9.3) does not match the one used
to build the TVTK classes (9.2). This may cause problems.
Please rebuild TVTK.
********************************************************************************
try updating vtk to the correct version:
pip install -U vtk==9.2
Testing
Run unit tests:
make test
Produce a coverage report:
make coverage
Example
python example.py
TODO:
- Check if all points of a wall are coplanar
- Triangle area: https://en.wikipedia.org/wiki/Heron%27s_formula
- Triangulation:
- Accurate center of weight for Wall
- Tests are failing
- Check whether a point lays on the surface of a polygon
- Check whether a point is inside a Solid
- Use mayavi instead of matplotlib: https://docs.enthought.com/mayavi/mayavi/index.html
- Delaunay triangulation of a polygon -> Polygon.delaunay_triangulation()
- Pretty mesh rendering
- Mesh points on the edges should be shared across all connected polygons
- one config
- Mesh face polygons should have the same surface normals as the polygon
- Add to PyPi to reserve the name
- Fix highly skewed triangles in Delaunay triangulation
- Delaunay triangulation of a solid
- Discretize solid with tetrahedra
- Calculate solid volume
- Accurate center of weight for Solid
- Wall could be a collection of Polygons instead of a Polygon subclass
- Zone could be a collection of Solids instead of a Solid subclass
Metadata
Release files for building3d 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| building3d-0.0.1.tar.gz | 22.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| building3d-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.3 kB
Release files / building3d-0.0.1.tar.gz
| Download URL | building3d-0.0.1.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cdbd7fd5ee3c733b14a64980941e9f47265d1cf4c4ba56747aa47d6549f20d9
|
|
BLAKE2b-256 checksum How to use checksums |
a049cd7c11a0949cc214e1cdb2cdbf1d4295ce6beb5d677ca59d0360f066b8e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / building3d-0.0.1-py3-none-any.whl
| Download URL | building3d-0.0.1-py3-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65ad38ceba684007d5d477da21e4b9746aeb1746acb073fcc74ca4dcc3c5f1ac
|
|
BLAKE2b-256 checksum How to use checksums |
711487526f2afd9359d0376f6c146b88af0315fc33bf14c1cc4dbbb3e21189e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|