123Wampir / CloseUp

3D model viewer
1 stars 0 forks source link

support lines ? #10

Open heningyuan6256 opened 4 days ago

heningyuan6256 commented 4 days ago

Will future versions include rendering the lines of the model onto the canvas and being able to accurately measure the lines

123Wampir commented 1 day ago

Hi @heningyuan6256! Did you mean something similar to edges, like in 3dviewer.net? image It is possible and i think there's no problem to implement it.

heningyuan6256 commented 1 day ago

Can the line be accurately measured, such as the two points selected, or the diameter of the circle directly measured

heningyuan6256 commented 1 day ago

The mouse can't pick points accurately

123Wampir commented 1 day ago

Viewer can't apperate on brep data directly. All models you load, will be triangulated and displayed as mesh of polygons. This mean that there's always a some level of approximation to your initial model, which is also mean that we loss all topological info (surfaces, edges, actual points). So there's no way we can accurate measure model dimensions without using some CAD kernel like OCCT. Work arround here is to measure the length of edge loop like the Blender does, but it's still give you a proximate result