Skip to content

A simple feature-preserving isotropic remesher based on edge flips, edge collapses and vertex repositioning

Notifications You must be signed in to change notification settings

jamesgregson/remesher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remesher

A simple feature-preserving isotropic remesher based on edge flips, edge collapses and vertex repositioning.

This is pre-alpha code! Use at your own risk. I cannot support it!

Requirements

My utilities code for string handling, some geometry functions and command line arguments, download from: https://github.com/jamesgregson/utilities

Building

Generate makefiles using CMake from the build/ subdirectory then build with make.

<path>/remesher$ cd build
<path>/remesher/build$ cmake .. -G Xcode
<path>/remesher/build$ make

Meshing

After a successful build, run from bin/ subdirectory or play with the run_suite.py

Run with no options to see command line arguments, e.g.:

<path>/remesher/bin$ ./remesher
option -size defaulted to 0.02
option -feat defaulted to 45.0087
option -iters defaulted to 10
==================================================
Usage: ./remesher [parameters]
==================================================
Parameters:
  -input  <String>  [REQUIRED] input file in .obj format
  -output <String>  [REQUIRED] output file in .obj format
Optional parameters:
  -size   <Real>    [OPTIONAL] edge length as fraction of bounding box longest side, default: 0.02
  -feat   <Real>    [OPTIONAL] feature threshold, degrees, default: 45.0087
  -iters  <Integer> [OPTIONAL] number of remeshing iterations to perform, default: 10
==================================================
Errors: 
required option -input was not specified!
required option -output was not specified!

command line was: 
./remesher 

Example outputs

bunny

cad model

cad model

cad model

About

A simple feature-preserving isotropic remesher based on edge flips, edge collapses and vertex repositioning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published