Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

207
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda