Mesh Parametric Surface

Try to read the tests of the package as they are quite exhaustive.

I understand that you can simply instantiate vertices with your parametrization, for instance you have a function:

f(u,v) = Point3(x(u,v), y(u,v), z(u,v))

So you can create a lattice:

vertices = [f(u,v) for u in us for v in vs]

and connect a few of them, for example with a grid topology:

topology = GridTopology(length(us)-1, length(vs)-1)

The simple mesh is then:

mesh = SimpleMesh(vertices, topology)
1 Like