Coder Social home page Coder Social logo

Comments (5)

Yixin-Hu avatar Yixin-Hu commented on June 5, 2024

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.

ikoruk avatar ikoruk commented on June 5, 2024

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.

Yixin-Hu avatar Yixin-Hu commented on June 5, 2024

Could you share the input and the command you used?

from triwild.

ikoruk avatar ikoruk commented on June 5, 2024

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.

Yixin-Hu avatar Yixin-Hu commented on June 5, 2024

Ok, I'll check it

from triwild.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.