Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

draw circle around point on Plot3DCurve

Hi all

I need to draw a circle around a point on a 3d curve with radius equal to optional w() vector value or, at least, equal to a known value.

Can anyone help me ?

Thanks

Beta66
0 Kudos
Message 1 of 7
(10,098 Views)
Hi guys so far i didn't get any answer. Does it mean that what i asked (plot a circle around a point on a 3d curve)is impossible or that nobody is interested in giving me an answer? I would really appreciate any replay Ciao Beta66
0 Kudos
Message 2 of 7
(10,061 Views)
Hi beta66bis,

You should be able to add a new plot to the CWGraph3D.Plots collection and have that plot draw a circle around whatever point you wish. Maybe you already know that and are looking for some algorithms? Check out this post here where a customer posted a text file with an algorithm of an arc circle. We also have a shipping example that shows off plotting different curves located in <Measurement Studio>\VB\Samples\3DGraph\Plot Styles\ directory.

If those links don't help, let me know and explain at what stage your are at (i.e. trouble with algorithm, not plotting correctly, etc).

Best Regards,


Message Edited by Jonathan N on 11-06-2007 09:48 AM
Jonathan N.
National Instruments
0 Kudos
Message 3 of 7
(10,051 Views)
Jonathan N first of all thanks for replay. I had a look at the samples and this was a big help on how to plot a circle with known radius and origin. But at this point i have another trouble: to rotate the circle in order to have it perpendicular to curve axis. I hope you can give me further good hints Tanks in advance Beta66
0 Kudos
Message 4 of 7
(10,037 Views)
Hi beta66bis,

I am a little unclear of exactly what type of behavior you are looking for. When you call our Plot3D methods, you typically have parameters for the x, y and z vectors.I would assume you would pick 2 axes to work on (like x and y) and then set up your data points to only populate those 2 vectors and leave the other vector empty.  Without seeing some example code or picture of what you want, its kinda hard to suggest solutions.  Could you provide me with some simple example of what you have now and maybe show an screenshot of what you wish to see.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 5 of 7
(10,030 Views)
Hi Jonathan N.

I bag your pardon for being unclear.

I have the following array of data: X,Y,Z,R (R = radius)

I call Plot3dCurve method to plot X,Y,Z data as shown in figure 1;

I need to plot around the point Pi(Xi,Yi,Zi) on the 3dcurve a circle with radius = Ri and the plane perpendicular to curve axis, as shown in figure 2.

I hope I've been clear and I thank you in advance.

Ciao

Beta66
Download All
0 Kudos
Message 6 of 7
(10,018 Views)
Hi beta66bis,

Okay, so I kinda understand what you want but I now I am under the impression that you are unable to even plot a circle correct?

Are you even able to plot a circle on a 2d plane? In that case, your z vector would be all "1's". For example, if modify the Simple 3D Graph example to have the zData(i) array = 1 (i.e. this is for the Plot Curve handler entitled PlotCurve_Click()), then you output should look like the attached snapshot. As you can see, a simple circle.

Here is a link that might help some. The code there is C code but it seems talk about your scenario. See if that helps

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 7 of 7
(10,008 Views)