weymouth / parametricbodies.jl Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
The example provided contains basic b-spline routines that should work on a GPU but cause problems when used inside ParametricBodies. Having this functionality would be a major boost as it would allow creating complex shapes and kinematics.
Hi Gabe, thanks for the great code. My question is, would it be possible to make a ParametricBody
compatible with the WaterLily.∮nds
method in Waterlily/Metric.jl? So far I think they are not compatible due to ParametricBodies
missing the sdf
field. Thank you!
We need to define a more general normal vector for parametric bodies. The rest carries nicely from 2D to 3D but not those lines.
This is annoying as it results in a division by zero for the normal vector computation and pollutes the distance field. Luckily it doesn't occur very often and the fix seems simple enough lims = clamp.(lims,lims[1]+eps(T),lims[2]-eps(T))
and clamping any uv to these limits ensure that the normal is always a vector with non-zero magnitude.
We need a way to detect if a NurbsCurve
is open or closed, as the function ParametricBodies.notC¹(l::NurbsLocator,uv)
is only valid for open NurbsCurve
for now. I will do that as soon as possible.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.