fstl-app / fstl

A fast STL file viewer
448 stars 105 forks source link

Feature Request - Optionally draw also the viewable edges in the "Solid" modes #95

Open pocomane opened 1 year ago

pocomane commented 1 year ago

When selecting "Shaded" or "Surface Angle" as drawing mode, the edges are not drawn. This makes the model difficult to understand in some conditions. For example this is evident when the model have multiple faces orthogonal to the view direction.

An option to stroke the viewable edges with a solid line would fix this, and improve the use of fstl as a "CAD Viewer".

DeveloperPaul123 commented 1 year ago

Do you have an example model where this occurs or a screenshot?

pocomane commented 1 year ago

This is a part I am working on for 3d-print:

Screenshot from 2022-11-22 19-11-35

The cylinder is drawn for reference, to check if other the edge are proper aligned. My purpose was to visually make this check looking at the front view. However the front view is not useful at all due to the absence of edge strokes:

Screenshot from 2022-11-22 19-11-15

Shaded view is similar. Wireframe is usable but still (lot) messy:

Screenshot from 2022-11-22 19-16-10

DeveloperPaul123 commented 1 year ago

I see, so what you're looking for is kind of a blend of the solid rendering mode combined with the wireframe but only for the faces that are currently visible?

pocomane commented 1 year ago

Yes, exactly. The openscad viewer does something similar:

Screenshot from 2022-11-28 09-59-24

It is still a bit confusing due to the edge drawn inside the same "Macroscopic" face, but I think this is unavoidable. However the clean-up is enough to follow the cylinder edge. The example model is quite simple, in more complex ones the pure wireframe view become quickly unusable.