A Delaunay triangulator for terrains
Project description
startinpy
Python bindings for startin, a Delaunay triangulator for the modelling of terrains.
Installation
pip
To install the latest release: pip install startinpy
Development
- install Rust (v1.39+)
- install maturin
maturin develop
- move to another folder, and
import startinpy
shouldn't return any error
Documentation
Simple documentation of the API is available in the folder /docs/
Examples
import startinpy
pts = []
pts.append([0.0, 0.0, 11.11])
pts.append([1.0, 0.0, 22.22])
pts.append([1.0, 1.0, 33.33])
pts.append([0.0, 1.0, 44])
pts.append([0.5, 0.49, 44])
pts.append([0.45, 0.69, 44])
pts.append([0.65, 0.49, 44])
pts.append([0.75, 0.29, 44])
pts.append([1.5, 1.49, 44])
pts.append([0.6, 0.2, 44])
pts.append([0.45, 0.4, 44])
pts.append([0.1, 0.8, 44])
t = startinpy.DT()
t.insert(pts)
#-- remove vertex #4
t.remove(4)
print("# vertices:", t.number_of_vertices())
print("# triangles:", t.number_of_triangles())
print("CH: ", t.convex_hull())
itrs = t.incident_triangles_to_vertex(4);
print(itrs)
print(t.is_triangle([4, 12, 6]) )
print(t.is_triangle([5, 12, 6]) )
print("--- /Vertices ---")
for each in t.all_vertices():
print(each)
print("--- Vertices/ ---")
alltr = t.all_triangles()
print(alltr[3])
It can read LAS/LAZ and output OBJ files too:
import startinpy
t = startinpy.DT()
t.read_las("/home/elvis/myfile.laz")
print("# vertices:", t.number_of_vertices())
print("# triangles:", t.number_of_triangles())
t.write_obj("/home/elvis/output.obj")
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for startinpy-0.7.5-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ec59ff719750f67b96ccf37a4d6fe9175ced4692229e71d684bfbbe51d64ed9 |
|
MD5 | a78b0d7a9749640426cea02fb0471e21 |
|
BLAKE2b-256 | 5dffbb3fbd0e68529b9719c4711ae33afe6e0783d105c05194ed5d2995dae2af |
Close
Hashes for startinpy-0.7.5-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbcb83f1db15d56968b74b82fdb5e24c0eb9faeeec442888ea6ef103538039e7 |
|
MD5 | dfef36d75fc595eee18f305e14da2c8f |
|
BLAKE2b-256 | b3fe16027efb4313f8e80fab8f03859977b4db232e3989766b5f948939a1fb4a |
Close
Hashes for startinpy-0.7.5-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9a85af5aace0520427d25bc29be72ae8bf9f6ec7548ebc34ad213e3e1e804c4 |
|
MD5 | 38c926c240be1d1ff78405531897452a |
|
BLAKE2b-256 | 42f6b95cef42773df43cfd45a20476b26bc9325c54634959316789719f9746ff |
Close
Hashes for startinpy-0.7.5-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f0f7e47e1e82f2527c18c2e0b69826a388ed34ae6e0f5d439584644f5229062 |
|
MD5 | 7284182721008fd6a59e08ff766ab81d |
|
BLAKE2b-256 | e0706649d9a6ee989978b6f34f1b5c74c23e37d2f8fcbe88717671ad0cd89fdd |
Close
Hashes for startinpy-0.7.5-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9037c4976b626e444e90fdebdddb194d10179df662ffdc9122b1709912da429 |
|
MD5 | a219651f4ddb5458d15a852f47ea34b3 |
|
BLAKE2b-256 | 70ee86c3c279eee4a6ae8407130c9e3c0d0af49a24f29e82bbe87d680ea777cd |
Close
Hashes for startinpy-0.7.5-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a407f30c436a0acb7cff1b8767b4d3dc0d2bfcbb6c5fe6be5accb3388fc68175 |
|
MD5 | 883e79bc857a036dab723a32cee4fdd4 |
|
BLAKE2b-256 | 8beaac745c22aff97f94ee64eb6c00dae6ffcecee1049ad1f8572e727a626ea9 |
Close
Hashes for startinpy-0.7.5-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 861d08cf480ee830d14f19214565b388376bd07d31bdb5485a262a0d048f7b66 |
|
MD5 | 4fab726dc144975a9519e00cda9b6b5f |
|
BLAKE2b-256 | dea0469ffe28cc9e4d535ae5f597eb81914dffe20ddefde7daf5f225c08c4629 |
Close
Hashes for startinpy-0.7.5-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de45dc5b7ba5c1e403667f780ae33c667cdde8c1bd23ba81c9546f9ea73e5f94 |
|
MD5 | 745314afe29cd6f0792a88e5eb4945c4 |
|
BLAKE2b-256 | d2ec6c23c535e87d9fc98a034912c7645ae9f96ae03391f84691a7a0bedc9b4e |