Rendering wireframe edges similar to CAD

Hello!

It’s possible that Three.js is not able to do what I’m attempting, but here’s the problem I’m trying to solve:

I model in parametric CAD and can export most common types including GLTF. I’m attempting to render a style similar to this one created in Onshape:

With tessellation, I get this in three.js using lines (GLTF loading):

Here’s what the GTLF model looks like:

I don’t necessarily need the accuracy that NURBS or BREP models use, but I would like to be able to shade the mesh in a way that mimic the wireframe view in the first image.

Is this a shader I need to find/write, a preprocessor, or is this a limitation of mesh rendering in general?

Thank you!

I think this topic might be what you’re looking for: LDraw-like edges

1 Like

That’s it! Thank you.

I loaded my model into one of the examples in that thread, and get similar results.

Does this require a curve of some kind?