We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 text was updated successfully, but these errors were encountered:
No branches or pull requests
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)
The text was updated successfully, but these errors were encountered: