# GN: How do I dynamically create a mesh of vertices from a set of points? [duplicate]

I'm trying to calculate a set of points in this Combine XYZ node and I want to dynamically create a mesh of vertices from these points. How do I do this? I mean it's possible to pass Combine XYZ to Set Position node but that assumes the vertices already exist. I'm not sure if Points to Vertices or something similar does the job? I need something that converts these points from Combine XYZ node to an actual mesh.

I know I can easily do this with XYZ Math Surface but I'm curious to know If geometry nodes is capable of dynamically generating such a mesh as well. It has the advantage that I can also animate it rather than a static XYZ Math Surface

This is the node setup I have for the sphere

UPDATE:

I just realized using Position node and Grid node really do answer my question:

• the problem is that you have "just" points. For a mesh you need edges and faces (and as you know you can only see faces, if you render). And you don't have these informations if you have just points...of course you can set this points (e.g. from a point cloud), but this doesn't mean that you have a working mesh. Commented Jul 27, 2022 at 10:24
• your wish is my command.... :D Commented Jul 27, 2022 at 11:20
• node setup: [1]: i.sstatic.net/E22OH.jpg Commented Jul 27, 2022 at 11:27
• result: [1]: i.sstatic.net/CjJSx.gif -> yellow: GN ,"normal": Math surface Commented Jul 27, 2022 at 11:28
• friggin awesome! you're the man! i wanted to verify it with the nautilus but got lazy coz there are too many nodes hahahaha thanks a lot for showing it! :D Commented Jul 27, 2022 at 11:31

These nodes don't work in this way. When you see the round socket it is ok, data travels from left to right, as you expect. But when it comes to diamond sockets, the data travels back from right to left to the source to get the data for the node with the round socket. That means that the node with round socket initiates the flow in diamond sockets. Without it, you will not have any data. So this is your mistake:

I have calculated a set of points in this Combine XYZ vector

No, you haven't calculated anything, if you don't have vertices (or shall we say Data Domain), you don't have its coordinates.

So the question is what are you trying to achieve. If it is a mesh, connected with edges and faces, you have to define this mesh, because at this time you can't build mesh out from points. So you can create a basic shape and move it's points using set position node.

If you want to make a point cloud, you should define a size of this point cloud, how many points in it. Simply make a mesh line and convert it to point cloud using Mesh to Points node:

As I understand, you are trying to do like this:

• okay I updated the question. actually i have a set of parameterized equations that i want to use to dynamically create any shape. how do i realize such a mesh? i want to know how to do it with geometry nodes because i already know how to do it with XYZ Math Surface Commented Jul 27, 2022 at 10:10
• I haven't much to add in my answer, except when you are using spline parameter, data domain should be spline. And I suppose it is not a domain that you want to use. Maybe you have an image that are you trying to achieve? Can you share the nodes as well, so I can play with blend-exchange.com Commented Jul 27, 2022 at 10:14
• I've updated the answer Commented Jul 27, 2022 at 10:28
• hmmm using a grid is a workaround. it will only create a half sphere blend-exchange.com/b/24ydxSN7 and besides it cannot cater to complex shapes such as the presets under XYS Math Surfaces. So I should probably ask if Geometry is even designed for such tasks or probabaly it is not right? Commented Jul 27, 2022 at 10:50
• Edit map range, for second half Commented Jul 27, 2022 at 11:03