Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

205
Vistas
How can set a box around an object in Potree having the position coordinates and the 8 vertexes?

I'd like to highlight an object in Potree rendering a box (BoxVolume)around it, having the position and the vertexes of the object

const volume: BoxVolume = new this.Potree.BoxVolume();
volume.clip = true;
volume.position.x = selectedClassInstance.centroid[0];
volume.position.y = selectedClassInstance.centroid[1];
volume.position.z = selectedClassInstance.centroid[2];
this.viewer.scene.addVolume(volume);

where centroid is an array containing [{x: number, y: number, z: number}] and I have also an array of coordinates for 8 vertex of the box. At this point I'm able to render a cube using the centroid variable (although I'd like to customise colour of the edges), but I don't know where to set/put the vertexes coordinates in order to make the cube entirely wrapping my object

enter image description here

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda