Coder Social home page Coder Social logo

Parameter details about triangle HOT 7 CLOSED

esimov avatar esimov commented on September 28, 2024
Parameter details

from triangle.

Comments (7)

esimov avatar esimov commented on September 28, 2024

I will document what each parameter does.

It would be good if MaxPoints was 0 and BlurRadius was provided, that the algorithm blurs but does not perform the triangulation process.

Could you detail a little bit more what is your issue? MaxPoints should be greater than zero because that parameter defines from how many points the vertices will be constructed.

from triangle.

pjebs avatar pjebs commented on September 28, 2024

That's right. I understand that. I'm suggesting perhaps allowing MaxPoints to be 0, and if so, no triangulation is applied. Hence if BlurRadious is provided, then the algorithm just blurs.

from triangle.

esimov avatar esimov commented on September 28, 2024

I'm trying to understand why would you need something like that? I can make it to work that way, but just bluring out an image is not the scope of this library. But you might have a solid argument in the favor of your request.

from triangle.

pjebs avatar pjebs commented on September 28, 2024

Well it's logically consistent with how the algorithm should behave. After all, if MaxPoints is 0, then that is sensible behaviour.

from triangle.

evilfunnybird avatar evilfunnybird commented on September 28, 2024

That's right. I understand that. I'm suggesting perhaps allowing MaxPoints to be 0, and if so, no triangulation is applied. Hence if BlurRadious is provided, then the algorithm just blurs.

Dude, just add an "if points==0" in your script and make your blurring, why would you ask for disabling triangles in triangulation library

from triangle.

pjebs avatar pjebs commented on September 28, 2024

I want to leverage the blurring that the library already provides.

from triangle.

esimov avatar esimov commented on September 28, 2024

After all it make sense if we take from the logical point of view, because normally when there are zero points, there are no points to generate the vertices from. Also I agree that this way we can leverage the blurring function as an independent method without being interconnected to the triangulation function itself. I have updated the code, but probably won't make a new release for now, so you might change the go.mod file.

from triangle.

Related Issues (17)

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.