Comments (6)
see this reference as a real Voronoi partitionning
https://www.craftsmanspace.com/free-patterns/voronoi-2d-patterns.html
from fusion360voronoi.
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.
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.
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.
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.
@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)
- Adjust the values to be whole numbers (ie smaller space needed in the column for values (ie where the cm is displayed) HOT 3
- Request: Min and Max Cell Distance, Min and Max Cell Area, Refresh HOT 4
- Various feature requests / bugs HOT 3
- Can't select generated sketch elements for extrusion HOT 1
- [Feature Request] Seamless pattern on cylindric shapes. HOT 4
- Retroactively edit a Voronoi pattern HOT 1
- Cells look 'blocky' HOT 1
- No dialog box HOT 1
- Fusion 360 No longer supports java script. HOT 1
- .manifest file missing? HOT 3
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 fusion360voronoi.