<p>The first thing that came to mind was:</p>
<ul>
<li><strong>OpenSCAD</strong>: A script-based 3D modeling tool ideal for creating models with mathematical descriptions.</li>
</ul>
<p>Two other possible candidates are:</p>
<ul>
<li>MATLAB</li>
<li>Mathematica</li>
</ul>

CC BY-SA 4.0
2024-01-29T07:48:16.113Z
2024-01-29T07:48:16.113Z
Bob Ortiz
<p>I want to print a <a href="https://en.wikipedia.org/wiki/Surface_of_constant_width" rel="nofollow noreferrer">solid of constant width</a>, and I have defined its shape as trios of math equations in two variables: <code>X(u, v)</code>, <code>Y(u, v)</code>, and <code>Z(u, v)</code>. The equations also have two radius parameters, <code>a</code> and <code>h</code>, that determine the specific shape of the surface generated by the equations.</p>
<p>Is there software that will let me define the vertices of a 3D object with parametric equations, dynamically creating/removing/adjusting-the-positions-of vertices as I change the step size of <code>u</code> and <code>v</code> (determining the total number of vertices) and the values of the parameters <code>a</code> and <code>h</code> (adjusting the positions of the vertices), and export the resulting object as a 3D file to be imported into slicing software?</p>
<p>Blender has XYZ Math Surface, which will create an object from three functions; but once created it is entirely static, and the parameters cannot be adjusted without deleting the object and starting over. GeoGebra will create 3D surfaces and export them as STL files, but doesn't allow choosing the step size and thus vertex count. Are there any good alternatives?</p>

CC BY-SA 4.0
2024-01-29T23:39:03.047Z
Why is a static object that needs to be deleted and recreated not an acceptable solution?  I ask because that comment about Blender's math surface suggests something about your workflow which may be very applicable to your answers.
Cort Ammon
CC BY-SA 4.0
2024-01-30T02:48:56.660Z
@CortAmmon I want to be able to fiddle with parameters to see what looks best before printing, and Blender's implementation of Math Surfaces is not at all geared towards experimentation. Off the topic of 3D printing, I'd also like to create an animation of one specific shape parameter varying over time (not one that affects vertex number/connections), which in Blender would require making a separate copy of the shape for every single frame of the animation.
Lawton
<3d-models><software>
Is there software that allows generating the vertices of a 3D model from a math function and adjusting them dynamically?
Lawton
# Is there software that allows generating the vertices of a 3D model from a math function and adjusting them dynamically?

(Asked by: username_0 on 2024-01-27)

I want to print a [solid of constant width](https://en.wikipedia.org/wiki/Surface_of_constant_width), and I have defined its shape as trios of math equations in two variables: `X(u, v)`, `Y(u, v)`, and `Z(u, v)`. The equations also have two radius parameters, `a` and `h`, that determine the specific shape of the surface generated by the equations.

Is there software that will let me define the vertices of a 3D object with parametric equations, dynamically creating/removing/adjusting-the-positions-of vertices as I change the step size of `u` and `v` (determining the total number of vertices) and the values of the parameters `a` and `h` (adjusting the positions of the vertices), and export the resulting object as a 3D file to be imported into slicing software?

Blender has XYZ Math Surface, which will create an object from three functions; but once created it is entirely static, and the parameters cannot be adjusted without deleting the object and starting over. GeoGebra will create 3D surfaces and export them as STL files, but doesn't allow choosing the step size and thus vertex count. Are there any good alternatives?

**Tags:** 3d-models, software
> **Comments:**
> **username_1**: Why is a static object that needs to be deleted and recreated not an acceptable solution?  I ask because that comment about Blender's math surface suggests something about your workflow which may be very applicable to your answers.  
> **username_0**: @CortAmmon I want to be able to fiddle with parameters to see what looks best before printing, and Blender's implementation of Math Surfaces is not at all geared towards experimentation. Off the topic of 3D printing, I'd also like to create an animation of one specific shape parameter varying over time (not one that affects vertex number/connections), which in Blender would require making a separate copy of the shape for every single frame of the animation.  

---

## 1 answers

### Answer by username_2 on 2024-01-29. Score: 2

The first thing that came to mind was:

* **OpenSCAD**: A script-based 3D modeling tool ideal for creating models with mathematical descriptions.

Two other possible candidates are:

* MATLAB
* Mathematica


---

