load mesh data and structure meshes
This commit is contained in:
@@ -942,10 +942,10 @@ public class dbBuildingHandler extends dbHandlerBase {
|
|||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
int meshID = rs.getInt("meshId");
|
int meshID = rs.getInt("meshId");
|
||||||
if(BuildingManager.mesh_bounding_boxes.containsKey(meshID) == false){
|
if(BuildingManager.mesh_bounding_boxes.containsKey(meshID) == false){
|
||||||
float endX = Float.parseFloat(rs.getString("end").split(";")[0]);
|
float endX = Float.parseFloat(rs.getString("mesh_end_point").split(";")[0]);
|
||||||
float endZ = Float.parseFloat(rs.getString("end").split(";")[1]);
|
float endZ = Float.parseFloat(rs.getString("mesh_end_point").split(";")[1]);
|
||||||
float refX = Float.parseFloat(rs.getString("ref").split(";")[0]);
|
float refX = Float.parseFloat(rs.getString("mesh_ref_point").split(";")[0]);
|
||||||
float refZ = Float.parseFloat(rs.getString("ref").split(";")[1]);
|
float refZ = Float.parseFloat(rs.getString("mesh_ref_point").split(";")[1]);
|
||||||
|
|
||||||
|
|
||||||
Vector2f topLeft = new Vector2f(refX,refZ);
|
Vector2f topLeft = new Vector2f(refX,refZ);
|
||||||
|
|||||||
Reference in New Issue
Block a user