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 hashes)
Built Distribution
building3d-0.0.1-py3-none-any.whl
(20.1 kB
view hashes)
Close
Hashes for building3d-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65ad38ceba684007d5d477da21e4b9746aeb1746acb073fcc74ca4dcc3c5f1ac |
|
MD5 | 9541314e69a8d6a69bc46191471680de |
|
BLAKE2b-256 | 711487526f2afd9359d0376f6c146b88af0315fc33bf14c1cc4dbbb3e21189e2 |