beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
ParametricSurface
Ops.Gl.Meshes.ParametricSurface
Creates a 3d mesh from a 2d area expressions

summary (oneliner)

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).

doc

issues

youtube id

collections

related ops

Inputs

shapes index (integer /Number)

render (Trigger)

Trigger input


Segments

u Segments (integer /Number)

number of segments on the U axis


v Segments (integer /Number)

number of segments on the V axis


U range

Multiple of PI - u (boolean /Number)

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 (boolean /Number)

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 (boolean /Number)

whether the shape should be drawn


Outputs

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


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save
ParametricSurface example:


Credits


Changelog


created op
2019-07-10 - simod

Examples using ParametricSurface

Public Patches using ParametricSurface