ParametricSurface Op

ParametricSurface

Creates a 3d mesh from a 2d area expressions


A parametric surface is a surface in 3d space that is defined by a parametric equation of 2 parameters.

Simplified, it is a mapping from (u, v) -> (x, y, z).

With this op, you have the possibility to define your own parametric surfaces by specifying a function for each 3d component (x, y, z). These functions may include all mathematic operations javascript is capable of.

For a reference of mathematical functions availible, please refer to the Javascript Math object: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math

There are presets you can choose from, which are a good starting point if you are unfamiliar with the mathematics.

For further reading (if you're not scared of maths!), please refer to

https://math.oregonstate.edu/home/programs/undergrad/CalculusQuestStudyGuides/vcalc/parsurf/parsurf.html

or

https://www.youtube.com/watch?v=MmTNkRA0yyk

to get an overview.

If you are just looking for formulas to put in, refer to

http://www.3d-meier.de/tut3/Seite0.html

as a starting point (German only, but not too hard to figure out).


Full Name
  • Ops.Gl.Meshes.ParametricSurface
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest Patches


INPUT PORTS


shapes index (Number:integer )
render (Trigger)

Trigger input

Segments

u Segments (Number:integer )

number of segments on the U axis

v Segments (Number:integer )

number of segments on the V axis

U range

Multiple of PI - u (Number:boolean )

whether uMin & uMax should be multiplied with PI

uMin (Number)

boundary start U

uMax (Number)

boundary end U

Displace U (Number)

displace U range

V range

Multiple of PI - v (Number:boolean )

whether vMin & vMax should be multiplied with PI

vMin (Number)

boundary start V

vMax (Number)

boundary end V

Displace V (Number)

displace V range

XYZ Functions

X Function (String)

uv function for x coordinates, allowed values: u, v

Y Function (String)

uv function for y coordinates, allowed values: u, v

Z Function (String)

uv function for z coordinates, allowed values: u, v

Scaling

Scale X (Number)

scale x coordinates by given amount

Scale Y (Number)

scale y coordinates by given amount

Scale Z (Number)

scale z coordinates by given amount

Draw

Draw (Number:boolean )

whether the shape should be drawn

OUTPUT PORTS


trigger (Trigger)

trigger out

geometry (Object)

outputs the geometry of the surface

Position (Array)

outputs the vertices of the surface (as an xyz-Array)

Position Amount (Number)

outputs the length of the vertices array


Patches using ParametricSurface

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarsimod - 2019-07-10 12:19
deprecationop was deprecateduser avatarpandur - 2024-05-15 11:17
deprecationop Ops.Deprecated.Gl.Meshes.ParametricSurface was deprecateduser avatarpandur - 2024-08-28 11:20
renameOps.Extension.Deprecated.ParametricSurface renamed to Ops.Gl.Meshes.ParametricSurfaceuser avatarpandur - 2024-09-10 07:31
deprecationop Ops.Gl.Meshes.ParametricSurface was deprecateduser avatarpandur - 2024-09-16 10:36
renameOps.Extension.Deprecated.ParametricSurface renamed to Ops.Gl.Meshes.ParametricSurfaceuser avatarpandur - 2024-10-30 08:32