kovacsv / Online3DViewer

A solution to visualize and explore 3D models in your browser.
https://3dviewer.net
MIT License
2.43k stars 534 forks source link

Add CAD-like rendering style #362

Open ghost opened 1 year ago

ghost commented 1 year ago

Describe the solution you'd like

Add some sort of CAD-like rendering:

kovacsv commented 1 year ago

What do you mean "CAD-like"?

ghost commented 1 year ago

I'm expecting to see at least FreeCAD's FCStd (which is also OCCT-based), STEP, IGES, BREP models to be shown as in CAD Assistant and Mayo viewers.

For example, here is FCStd file: 3d-curve_FCStd.zip

Screenshot_2023-02-25_04-33-15

But in "Online 3D Viewer" if turn ON "Show edges" it looks fully missing solid edge info, and shows mesh faces edges instead:

Screenshot_2023-02-25_11-37-16

Playing with "Edge Angle Treshold" setting make it looks better, but it still missing solid edges:

Screenshot_2023-02-25_11-59-02

yvanblanchard commented 1 year ago

It could maybe be done by getting the faces edges from the breps model, from Iges or step for example, and rendering the lines by the engine.

N3GIS commented 1 year ago

https://assetstore.unity.com/packages/tools/modeling/cad-server-pro-245967 https://n3gis.github.io/CADServerPro.html

You can take a look at this product, which is about to be released with Three .js loading CAD models