JSCAD User Group
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Curves described by parametric equations?

    Scheduled Pinned Locked Moved General Discussions
    4 Posts 3 Posters 1.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Alasdair McAndrewA Offline
      Alasdair McAndrew
      last edited by

      Is it possible (in JSCAD) to draw a curve in space defined by parametric equations x = x(t), y = y(t), z = z(t) over an interval of t? What I want to do is to draw a cylinder with a sort of "wavy" top; in my case the shape of the edge can be given as a parametric curve.

      Thanks!

      z3devZ 1 Reply Last reply Reply Quote 0
      • gilboonetG Offline
        gilboonet
        last edited by gilboonet

        I cannot help you with math, but there are at least 3 ways to achieve what you want to do :

        • extrudeFromSlices
        • extrude along a bezier path
        • hand build a polyhedron

        There are lots of examples using fromSlices on v1 website, they almost all use math functions, and there's also a very (very) complex example of polyhedron hand built from math, that creates a knot ring which form wavy surfaces. Bezier path is one of the new v2 examples.

        1 Reply Last reply Reply Quote 0
        • z3devZ Offline
          z3dev @Alasdair McAndrew
          last edited by z3dev

          @Alasdair-McAndrew are you looking for something like the Simple Bezier Extrude example? that uses a two curves to extrude a shape in 3D space.

          Code is here... (sorry you cannot see online yet)

          https://github.com/jscad/OpenJSCAD.org/blob/V2/packages/examples/core/curves/bezier/simpleExtrude.js

          1 Reply Last reply Reply Quote 0
          • Alasdair McAndrewA Offline
            Alasdair McAndrew
            last edited by

            Thank you very much - and I think that hand-building a polygon from a list of points may be my best bet at the moment. I can easily create points from my parametric equations, and then join them up.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            Powered by NodeBB | Contributors