Giter VIP home page Giter VIP logo

Comments (6)

wassfila avatar wassfila commented on June 3, 2024

Not Vornoi
image

Voronoi
image

see this reference as a real Voronoi partitionning
https://www.craftsmanspace.com/free-patterns/voronoi-2d-patterns.html

from fusion360voronoi.

LeonFedotov avatar LeonFedotov commented on June 3, 2024

Hey, this plugin warps around a javascript library called gorhill/Javascript-Voronoi do you know objectively that the linked library isn't creating the voronoi or is it some flaw in the implementation of this integration?
Maybe you should try using loyed's relaxation algorithm to achieve the results you are looking for, I also had the same "AESTETIC" issues with the original plugin and used loyd's to counter this weirdness.

from fusion360voronoi.

wassfila avatar wassfila commented on June 3, 2024

Hi, you're right, to be fair, I renamed the issue to make it more specific to the integration. So since I posted this ticket, a lot has happened, I spent some time working on a new Voronoi editor and I'm using the same dependency as you do, so I can already confirm that the issue is not from the library.
Here below a link to my project, in it a link to a live demo if you'd like to check it out
https://github.com/WebSVG/voronoi
and here another project using that same library, I forked it to provide a live demo: https://websvg.github.io/svg_voronoi_gen/

You can have a look at my code or the other projects code if you want, but after having implemented it, I realize that your issue could be related to the bezier curves or their control points.
Bezier curves could be tangent at the cells centers, where you have the black dots and in your version they're clearly not tangent but intersecting.
If you'd like to reuse any code from my project, I'd even help you, I'm a big Fusion360 user but did not venture on plugins yet, so I'd be glad to have the same advanced functions I'll be developing in a Fusion360 plugin.

from fusion360voronoi.

hanskellner avatar hanskellner commented on June 3, 2024

Hi @wassfila and @LeonFedotov -

Yes, the limited spline support within the Fusion 360 API made it impossible to tighten the control points. But, I haven't looked at that issue in a while and it's possible that Fusion's API is improved in that area.

@wassfila - I took a quick look at your code/example. Very nice interaction. Let me think through this a little. I've had improvements to the current code planned (posssible 3d support) but an interim update might be worthwhile

from fusion360voronoi.

LeonFedotov avatar LeonFedotov commented on June 3, 2024

3d sounds fun :)
@hanskellner I can do a cleanup on the code a bit if you'd like, since iv'e got some free time :D

from fusion360voronoi.

wassfila avatar wassfila commented on June 3, 2024

@hanskellner 3d sounds awesome, if I can be of any help there I'd be glad to.
The library we both based our generation on is I think 2d based, so it depends what options you can do on Fusion, if 3d means 2d surface such as sphere or cynlinder, or 3d like in a cheese like Voronoi holes.
In both cases, I'm sure that'd be a much welcomed feature by the community.

from fusion360voronoi.

Related Issues (11)

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.