Comments (5)
Hi, the target_edge_len
controls the max edge length in the output. This is because if the input has high-frequency features and you want to preserve them, then it's impossible to get a very coarse mesh.
from triwild.
Hi, the problem is actually the opposite. Above a certain edge length the mesh returned is always the same mesh. (Which is too coarse)
from triwild.
Could you share the input and the command you used?
from triwild.
I'm trying a very simple triangle: [0, 0], [1, 0], [0.5, 1] with a target edge length of 0.05. It results in an average edge length of 0.2847.
Here is the output:
Loading and preprocessing ...
remove duplicates:
#v 3->3
#e 3->3
simplify:
#v 3->2
#e 3->1
Loaded and preprocessed.
time = 0.0598474s
BSP subdivision...
#v 102->125
#f 166->212
BSP subdivision done.
time = 0.00156363s
Mesh optimization...
#v = 125(125) unrounded = 0
#t = 212(212)
max_energy = 10.2876
avg_energy = 2.89565
min_angle = 12.7835, max_angle = 116.565
< 5: 0, < 10: 0, < 15: 0.0188679
> 175: 0, > 170: 0, > 165: 0
//////////////// preprocessing ////////////////
edge collapsing...
queue_s.size() = 595
success 30
re-push 68
queue_s.size() = 65
success 4
re-push 6
queue_s.size() = 1
success 0
re-push 0
edge collapsing done!
time = 0.475119s
#v = 91(125) unrounded = 0
#t = 148(212)
max_energy = 3.69612
avg_energy = 2.33998
min_angle = 24.4348, max_angle = 109.722
< 5: 0, < 10: 0, < 15: 0
> 175: 0, > 170: 0, > 165: 0
//////////////// postprocessing ////////////////
edge collapsing...
edge collapsing done!
time = 6.2761e-05s
#v = 91(125) unrounded = 0
#t = 148(212)
max_energy = 3.69612
avg_energy = 2.33998
min_angle = 24.4348, max_angle = 109.722
< 5: 0, < 10: 0, < 15: 0
> 175: 0, > 170: 0, > 165: 0
Mesh optimization done.
time = 0.476664s
A target edge length of 0.02 results in an even higher average edge length of 0.33. Only at 0.01 does it return a closer (though still far) average edge length of 0.0349.
from triwild.
Ok, I'll check it
from triwild.
Related Issues (10)
- TriWild dependencies and build system HOT 2
- Extend TriWild to manifold geometries HOT 1
- error when building geogram
- Any Windows exe?
- void triwild::feature::remove_high_curvature HOT 3
- Getting Started
- Getting Started
- Features aren't exported into `msh`
- Triwild crashes in building Figure 7 (left) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from triwild.