3dstreet icon indicating copy to clipboard operation
3dstreet copied to clipboard

bevel option on svg extrude

Open kfarr opened this issue 2 years ago β€’ 0 comments

as a user uploading a solid svg geometry for extrusion, I wish to have the ability to specify a bevel option that will use accept a separate material

for example primary material is bricks and secondary (curb) material is concrete: image source: https://cao-94612.s3.us-west-2.amazonaws.com/documents/March-2024-BPAC-Infrastructure-Committee-Meeting-Agenda.pdf

the three.js default bevel is not exactly the same but it is good enough to start with: https://threejs.org/docs/#api/en/geometries/ExtrudeGeometry

it does support multiple materials, but this will likely not work with a-frame inspector (editor) because multiple materials are passed as an array in three.js and not a standard a-frame method

relevant stack overflow answers: https://stackoverflow.com/questions/15074877/three-js-apply-different-material-to-extruded-shape https://stackoverflow.com/questions/51946718/is-there-a-way-i-can-add-multiple-material-components-to-an-entity-in-a-frame

kfarr avatar Mar 01 '24 04:03 kfarr