JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Curves described by parametric equations?

    General Discussions
    3
    4
    572
    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 McAndrew
      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!

      z3dev 1 Reply Last reply Reply Quote 0
      • Alasdair McAndrew
        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
        • z3dev
          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
          • gilboonet
            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
            • First post
              Last post
            Powered by NodeBB | Contributors