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

163
Visualizações
Extrude edge of extruded shape

I have created many different extruded shapes in a scene with the example below being a simple extruded triangle, but I now need to create a radius along a single edge of the object.

So in the example I would like to create a radius along the edge of the extrude from 0,0 to 900,0

Does anyone have any ideas on how to achieve this?

function extrude(tex, gp){
  let PrtOBJ = [], PrtPTS = [];
  PrtPTS.push(new THREE.Vector2(0, 0));
  PrtPTS.push(new THREE.Vector2(900, 0));
  PrtPTS.push(new THREE.Vector2(0, 900));;
  PrtPTS.push(new THREE.Vector2(0, 0));
let Prt = new THREE.Shape(PrtPTS);
PrtOBJ.push(Prt);
let PrtEXT = {
    bevelEnabled: false,
    steps: 1,
    depth: 22,
    material: 0,
    extrudeMaterial: 1
};
let PrtGEO = new THREE.ExtrudeBufferGeometry(PrtOBJ, PrtEXT)
let PrtMAT = new THREE.MeshPhongMaterial({
    side: THREE.DoubleSide,
    map: tex
})
let PrtMesh = new THREE.Mesh(PrtGEO, PrtMAT);
gp.add(PrtMesh);

Looked through three and the only way I can see is to create the edge extrude as a separate object to give me this Screenshot

Is there a way to merge the two geometries together to ensure the texture maps correctly

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