ardazishvili / Sota

Editable generator of discrete structures for Godot 4
MIT License
31 stars 2 forks source link

Unify construction of hex faces #33

Closed ardazishvili closed 2 months ago

ardazishvili commented 2 months ago

Unify construction of faces for HexMesh and Prism

'Frame' is additional faces for HexMesh going downward, and Prism has additional faces which goes upward. Factor out commond code, add trivial classes: Triangle, Edge, Face

Fix calculation of PrismHexMesh's height

Previously it was calculated correctly only for polyhedron

Add function for PrismHexMesh construction

Missed previously

Resolves: #18