CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Czech English Deutsch
Login/Register:
 Visitors: 3422 
RSS tips RSS channel - CAD tips
RSS discussion RSS channel - CAD discussion

Discussion Discussion forum

HelpCAD discussion

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

The information that you provide in this form will make up your forum profile which can be viewed by other forum members. Your email address will only be visible by forum admin and moderators and will be used to send you Forum Notifications. To cancel your account, use the page Opt-out or contact webmaster@cadforum.cz.

3DPlot Utility

 Post Reply Post Reply
Author
chaitu1351 View Drop Down
Newbie
Newbie


Joined: 02.Feb.2017
Location: India
Using: AutoCAD 2017
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote chaitu1351 Quote  Post ReplyReply Direct Link To This Post Topic: 3DPlot Utility
    Posted: 02.Feb.2017 at 07:14
I am using 3DPlot Utility for Surface Generation. 
In my case, the y upper limit is a function is current x value. Can anyone help solve this problem?

There is an simple form of my problem
0.1 < x < 0.5
0.1 < y < 2*x
(defun z (x y) (list x y (+ x y)))

How should write the code for 3D plot 
(3Dplot z 0.1 0.5 0.01 0.1 '?' 0.01)

Thank you
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

CAD Studio a.s.

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 1784
Post Options Post Options   Thanks (1) Thanks(1)   Quote Vladimir Michl Quote  Post ReplyReply Direct Link To This Post Posted: 02.Feb.2017 at 07:43
If I understand this correctly, you can just modify your Z function so as Y does not go over 2*X. E.g. this way:
 
(defun Z (x y) (list x (min y (* 2.0 x)) (+ x (min y (* 2.0 x)))))
 
 
Vladimir Michl (moderator)
CAD Studio - www.cadstudio.cz - Autodesk reseller
Back to Top
chaitu1351 View Drop Down
Newbie
Newbie


Joined: 02.Feb.2017
Location: India
Using: AutoCAD 2017
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote chaitu1351 Quote  Post ReplyReply Direct Link To This Post Posted: 02.Feb.2017 at 07:59
Thanks for your suggestion. 
your answer solves half of the problem

What should write in place of '?' (upper limit of y) in 3Dplot code
(3Dplot z 0.1 0.5 0.01 0.1 '?' 0.01)

Should I have to replace it by 2*(0.5) (ie., 2*max of x)?

Also in your solution, The values that are greater than 2*x become same points

And I think it might change the curvature.

Is there an option to not to consider those points 

Thank you
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

CAD Studio a.s.

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 1784
Post Options Post Options   Thanks (0) Thanks(0)   Quote Vladimir Michl Quote  Post ReplyReply Direct Link To This Post Posted: 02.Feb.2017 at 14:13
It depends on what the max. value should be - probably just 0.5.
 
Due to the meshing algorithm used it is currently not possible to completely skip/omit nodes.
Vladimir Michl (moderator)
CAD Studio - www.cadstudio.cz - Autodesk reseller
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,094 seconds.