A collection of custom Threejs Geometries. These geometries are used as part of the OSMBuilding project
Click each link for a demonstration.
- HippedGeometry Apply the straight skeleton algorithm to a shape and raise the faces into a hipped roof.
- PyramidGeometry Extrude an arbitrary shape to a point. Combining aspects of ExtrudeGeometry and ConeGeometry.
- RampGeometry with depth Extrude an arbitrary shape to a slope given a depth and direction.
- RampGeometry with pitch Extrude an arbitrary shape to a slope given a direction and pitch.
- WedgeGeometry Take an arbitrary shape, "bend it" along a line, and stretch each slope to have the same maximum depth. Essentially, create a gabled roof from an overhead view of the outline, and the height of the roof.