git clone --recurse-submodules git@github.com:KrisYu/SharpEdge.gitRun opt_edges.py and it will show the usage.
Example:
python opt_edges.py sketch/onshape_simple_mouse.objOr run with visualization
python opt_edges.py sketch/onshape_simple_mouse.obj --show-plotThe optimized normals will be saved in:
data/normal/(The directory will be created automatically if it does not exist.)
Build tools:
sh build_tools.shThe following binaries will be compiled and placed in the data directory:
-
signed_heat_3d -
cgal_remesh -
cut_edges
Then run:
sh normal_to_mesh.sh data/normal/onshape_simple_mouse_2n.normalSpecify target edge lengths for surface generation and target length for remesh:
sh normal_to_mesh.sh data/normal/bowl_curve_2n.normal 0.05
sh normal_to_mesh.sh data/normal/bowl_curve_2n.normal 0.06 0.02- 2nd argument:
TARGET_EDGE_LENGTH(default:0.04) - 3rd argument:
TARGET_REMESH_LENGTH(default:0.015)
All generated surface results will appear in:
data/onshape_simple_mouse/