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

159
Vistas
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 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