public final class S3DBUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
calcCircleMesh(GeometryBuffer element,
float minHeight,
float maxHeight,
java.lang.String roofShape)
Calculates a circle mesh of a Poly-GeometryBuffer.
|
static boolean |
calcFlatMesh(GeometryBuffer element,
float maxHeight)
Calculates a flat mesh of a Poly-GeometryBuffer.
|
static boolean |
calcOutlines(GeometryBuffer element,
float minHeight,
float maxHeight)
Calculates a mesh for the outlines of a Poly-GeometryBuffer.
|
static boolean |
calcPyramidalMesh(GeometryBuffer element,
float minHeight,
float maxHeight)
Calculates a pyramidal mesh of a Poly-GeometryBuffer.
|
static boolean |
calcRidgeMesh(GeometryBuffer element,
float minHeight,
float maxHeight,
boolean orientationAcross,
java.lang.String roofShape,
GeometryBuffer specialParts)
Calculates a ridge mesh of a Poly-GeometryBuffer.
|
static boolean |
calcSkillionMesh(GeometryBuffer element,
float minHeight,
float maxHeight,
float roofDegree,
GeometryBuffer specialParts)
Calculates a skillion mesh of a Poly-GeometryBuffer.
|
static int |
getColor(java.lang.String color,
Color.HSV hsv,
boolean relative) |
static int |
getMaterialColor(java.lang.String material,
Color.HSV hsv,
boolean relative) |
static float[][] |
getProfile(java.lang.String roofShape)
Get the profile (half cross section) of roof shape.
|
public static boolean calcCircleMesh(GeometryBuffer element, float minHeight, float maxHeight, java.lang.String roofShape)
element - the GeometryBuffer which is used to write the 3D meshpublic static boolean calcFlatMesh(GeometryBuffer element, float maxHeight)
element - the GeometryBuffer which is used to write the 3D meshpublic static boolean calcOutlines(GeometryBuffer element, float minHeight, float maxHeight)
element - the GeometryBuffer which is used to write the 3D meshpublic static boolean calcPyramidalMesh(GeometryBuffer element, float minHeight, float maxHeight)
element - the GeometryBuffer which is used to write the 3D meshpublic static boolean calcRidgeMesh(GeometryBuffer element, float minHeight, float maxHeight, boolean orientationAcross, java.lang.String roofShape, GeometryBuffer specialParts)
element - the GeometryBuffer which is used to write the 3D meshminHeight - the minimum heightmaxHeight - the maximum heightorientationAcross - indicates if ridge is parallel to short sideroofShape - the roof shapespecialParts - element to add missing parts of underlying elementpublic static boolean calcSkillionMesh(GeometryBuffer element, float minHeight, float maxHeight, float roofDegree, GeometryBuffer specialParts)
element - the GeometryBuffer which is used to write the 3D meshroofDegree - the direction of slopespecialParts - the GeometryBuffer which is used to write the additional building partspublic static int getColor(java.lang.String color,
Color.HSV hsv,
boolean relative)
color - the color as string (see http://wiki.openstreetmap.org/wiki/Key:colour)hsv - the HSV color values to modify given colorrelative - declare if colors are modified relative to their valuespublic static int getMaterialColor(java.lang.String material,
Color.HSV hsv,
boolean relative)
material - the material as string (see http://wiki.openstreetmap.org/wiki/Key:material and following pages)hsv - the HSV color values to modify given materialpublic static float[][] getProfile(java.lang.String roofShape)
roofShape - the roof shape value