Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Equation based surface

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
rounakmehta
929 Views, 4 Replies

Equation based surface

Hi,

 

I wanted to model a surface in AutoCad given by the equation z = sin(x)*sin(y). I tried doing this using the 3DPlot plug in but it didnt work for some reason. It always output '400' instead of creating some figure.  Could you please suggest how I could do this using 3DPlot or otherwise?

4 REPLIES 4
Message 2 of 5
hgasty1001
in reply to: rounakmehta

Hi,

 

Try this:

 

(defun eggbox(x y)(list x y (* (sin x)(sin y))))

(3Dplot -5 5 0.2 -5 5 0.2)

 

 

Gaston Nunez

Message 3 of 5
rounakmehta
in reply to: hgasty1001

Hey Gaston,

 

Thanks for your reply! It worked, but I have another problem.

 

I want to export the shape that I create using 3DPlot in .sat format. When I click the export option and select the surface it says ' No Solids, regions or ShapeManager bodies selected'. However, when I tried to export it in the .igs format it works. How do I resolve this?

Message 4 of 5
hgasty1001
in reply to: rounakmehta

Hi,

 

In order to export to sat format, you should convert the polyface mesh to a mesh and then to a surface, try this:

 

1.-Menu Modify->Surface Editing->Convert to Mesh

2.--Menu Modify->3D Operations->Convert to Surface

3.- Export to sat

 

Gaston Nunez

Message 5 of 5

A small correction to the gasty's answer - the right 3DPlot expression is:

 

(defun eggbox(x y)(list x y (* (sin x)(sin y))))

(3Dplot eggbox -5 5 0.2 -5 5 0.2)

 

You can use the embedded command 3DPTHICKEN to make 3D solids from the 3DPLOT-generated surfaces. See:

http://www.cadstudio.cz/en/apps/3dplot/

 

Feel free to contact us for any enhancement to our 3DPLOT utility.

 

Vladimir Michl, www.cadstudio.cz  www.cadforum.cz

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost