Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

**First time visiting? Here are some places to start:**

- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Options

# FeatureScript parametric surface

jan_allemann654
Member Posts:

**3**PRO
Hi there

Working with FeatureScript Parametric Surface:

https://cad.onshape.com/documents/57a62df8e4b03de4c9fcf154/w/f6d71f3d862b522902efcd68/e/ece65382fcd820281a9ee704

I'm trying to model a shape derived from the superellipsoid model:

where a, b, c, p0, p1 is known.

So if i express z = f(x,y), i can create the following shape:

for x,y close to the maximum, the function has an imaginary number as a result. Therefore, I can't create the surface in the corner of the final shape:

from what I've seen in the FeatureScript Parametric Surface i can only set the min, max values for x,y.

I believe expressing y as a function of x would do the job to avoid the corner. Is that possible?

Any other approaches? Final shape should look similar to that:

Working with FeatureScript Parametric Surface:

https://cad.onshape.com/documents/57a62df8e4b03de4c9fcf154/w/f6d71f3d862b522902efcd68/e/ece65382fcd820281a9ee704

I'm trying to model a shape derived from the superellipsoid model:

where a, b, c, p0, p1 is known.

So if i express z = f(x,y), i can create the following shape:

for x,y close to the maximum, the function has an imaginary number as a result. Therefore, I can't create the surface in the corner of the final shape:

from what I've seen in the FeatureScript Parametric Surface i can only set the min, max values for x,y.

I believe expressing y as a function of x would do the job to avoid the corner. Is that possible?

Any other approaches? Final shape should look similar to that:

0

## Comments

1,296✭✭✭✭✭Edit: I stand corrected. It's been a while since I looked at this featurescript. Looks like the spherical option is only for the parametric curve featurescript. So in this case you're SOL. Sorry

1,296✭✭✭✭✭3PROi think i'll give it a try although not super happy with the fill feature in onshape

3PROalthough there is an analytical solution for intersection points, onshape is interpolating the curve between points. therefore, the curves don't really intersect.