Print Page | Close Window

3DPlot Utility

Printed From: CAD Forum
Category: EN
Forum Name: ARKANCE (CAD Studio) applications
Forum Description: Questions and discussion about applications by ARKANCE and Be.Smart - RevitTools (T4R), X-Tools (T4I), Civil Tools, DWGtext, GeoRefImg, XLSparam, FLAY, Furniture, LT Extension,...
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12202
Printed Date: 27.Mar.2025 at 13:57


Topic: 3DPlot Utility
Posted By: chaitu1351
Subject: 3DPlot Utility
Date 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



Replies:
Posted By: Vladimir Michl
Date 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)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: chaitu1351
Date 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


Posted By: Vladimir Michl
Date 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)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner



Print Page | Close Window