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.
Modeling Volume with Cross Sections

I'm curious if it's possible to model a 3D shape that uses (ideally) two equations such as sqrt(x) and just the x axis (or x^2), and extrudes upwards (let's say) a square where the base of the square is between the equations. Hopefully that makes sense, but if not, here's a video that explains it much better:
I was able to do it on solidworks using a sweep and with a guide curve but it doesn't look like that option is available in OnShape. I tried using a loft but could not get the exact correct shape.
I was able to make an equation driven curve thanks to a feature script that folks made, but that is as far as I got.
Thanks in advance!
Garun
Answers
if you're able to plot both curves in the graph, you could extrude the area in between.
all you need is on the x-z plane a third equation which would be given by z=sqrt(x)-x^2.
extrude all those curves and enclose the space in between:
https://cad.onshape.com/documents/f47033ca7b6ec754e0f4e2c6/w/e8fe0533d85e6589ca772b0a/e/0d46ba184f2c6a78964e9f33?renderMode=0&uiState=681e0265eb695d2078a99d5a