Giter Club home page Giter Club logo

parametricbodies.jl's People

Contributors

marinlauber avatar weymouth avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

parametricbodies.jl's Issues

Fix spline bodies (please)

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.

Calculate Forces with Parametric Bodies

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!

norm_dir returns [0,0] when uv is on the lims of the curve parameter

https://github.com/weymouth/ParametricBodies.jl/blob/9e78f08be2c28aabf74a105753b71ac8e7cc8fac/src/ParametricBodies.jl#L104C1-L107C4

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.

automatic detection of open and closed NURBS

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.

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.