Coder Social home page Coder Social logo

Cannot fillet bezier curve? about replicad HOT 6 OPEN

sgenoud avatar sgenoud commented on August 17, 2024
Cannot fillet bezier curve?

from replicad.

Comments (6)

sgenoud avatar sgenoud commented on August 17, 2024

I have played a bit, and failed to fillet it - it feels like the OC kernel does not like your shape here...

from replicad.

lf94 avatar lf94 commented on August 17, 2024

What gets me is it's essentially just one big curve 😅 I don't see why it wouldn't like it...! Thanks for trying

from replicad.

lf94 avatar lf94 commented on August 17, 2024

So just to confirm, using RepliCAD (or any OC based tool) for this then is a dead end right?

from replicad.

sgenoud avatar sgenoud commented on August 17, 2024

It depends also on your model - this is not because it is a bezier spline, but because the angles your shape do are kinda incompatible with the fillet you request (with the algorithm OC uses).

For instance

const main = ({ draw, drawRoundedRectangle }) => {
  return draw()
    .halfEllipse(0, 20, 5)
    .smoothSpline(25, -3)
    .smoothSpline(20, 8)
    .smoothSpline(-20, -30, -90)
    .close()
    .sketchOnPlane("XY")
    .extrude(5)
    .fillet(0.5, (e) => e.inPlane("XY"));
};

will return a filleted shape. But if you change the fillet to 1, it will kernel error.

I would be interested to see if you can achieve filleting the same shape with cadquery (it might be fairly easy to port your code).

from replicad.

raydeleu avatar raydeleu commented on August 17, 2024

I tried to fillet your shape in Moi3D, but this program also has difficulty creating a fillet. I selected the complete top edge, but the marked part failed to fillet. On the other parts, the fillet is not complete either, as the straight part of the surface has not been removed.

image

from replicad.

raydeleu avatar raydeleu commented on August 17, 2024

After importing the shape into FreeCad it was indeed not possible to create a fillet. Yet, OnShape has no problem creating a fillet, 1 mm or 5 mm, it all works. Note that the STEP file used in OnShape was created in Replicad. This confirms that Parasolid is one of the more robust 3D kernels available (which is reflected in its price) but also that Replicad can produce a STEP file that can be used for further processing in other CAD tools.

image

from replicad.

Related Issues (20)

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.