Open meszaros-lajos-gyorgy opened 1 month ago
The following code has to be executed in order to have a mesh positioned to the map's origin:
const mesh = createPlaneMesh({ size: 1000, texture: Texture.missingTexture }) applyTransformations(mesh) mesh.translateX(map.config.offset.x) mesh.translateY(map.config.offset.y) mesh.translateZ(map.config.offset.z) applyTransformations(mesh) map.polygons.addThreeJsMesh(mesh)
Another way of adding multiple meshes to the map is the following:
const meshes: Mesh[] = [] // ... meshes .forEach((mesh) => { applyTransformations(mesh) mesh.translateX(map.config.offset.x) mesh.translateY(map.config.offset.y) mesh.translateZ(map.config.offset.z) applyTransformations(mesh) map.polygons.addThreeJsMesh(mesh, { tryToQuadify: DONT_QUADIFY, shading: SHADING_SMOOTH }) })
These should be handled internally similar to ArxMap.add(..., true)
ArxMap.add(..., true)
The following code has to be executed in order to have a mesh positioned to the map's origin:
Another way of adding multiple meshes to the map is the following:
These should be handled internally similar to
ArxMap.add(..., true)