Towards 3D building physics modeling
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
building3d-0.0.1.tar.gz
(22.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file building3d-0.0.1.tar.gz.
File metadata
- Download URL: building3d-0.0.1.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cdbd7fd5ee3c733b14a64980941e9f47265d1cf4c4ba56747aa47d6549f20d9
|
|
| MD5 |
5f0a65ffc915d1c8943fbb9a0150d53c
|
|
| BLAKE2b-256 |
a049cd7c11a0949cc214e1cdb2cdbf1d4295ce6beb5d677ca59d0360f066b8e0
|
File details
Details for the file building3d-0.0.1-py3-none-any.whl.
File metadata
- Download URL: building3d-0.0.1-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65ad38ceba684007d5d477da21e4b9746aeb1746acb073fcc74ca4dcc3c5f1ac
|
|
| MD5 |
9541314e69a8d6a69bc46191471680de
|
|
| BLAKE2b-256 |
711487526f2afd9359d0376f6c146b88af0315fc33bf14c1cc4dbbb3e21189e2
|