.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to determine collection point on ARC or circle

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
hoathuongphuoc
564 Views, 5 Replies

How to determine collection point on ARC or circle

Hi All,

I have 1 problem, hope everybody can help me. This is, I have 1 arc and now i want to get all point on this arc. 

I have attached image.

5 REPLIES 5
Message 2 of 6
mzakiralam
in reply to: hoathuongphuoc

HI,
Usually an arc consists of 3 points. Start, Center and End point. But from your picture it seems like that there is more than 3 points. can you clarify more regarding your problem?
Message 3 of 6
hoathuongphuoc
in reply to: mzakiralam

Yes, i can get 3 point(start,point,middle) but if i want to get any more point in arc. How can i do that. thanks for your help.

Message 4 of 6
hgasty1001
in reply to: hoathuongphuoc

Hi,

 

An arc is a curve class derived, so you can get points on the arc with something like this:

 

dim sp,ep as double
dim dp as double= 0.1 '<--Set this var to any value in order to obtain dense or sparse points
dim ds as double
dim pcoll as new pointcollection3d

sp=MyArc.StartParam
ep=MyArc.EndParam
ds=sp

Do While ds <= ep
 pcoll.add(Myarc.GetPointAtParam(ds)
 ds=ds+dp
Loop

 

Gaston Nunez

Message 5 of 6

Additionally, you could use GetPointAtDist(double distance) - depending on your exact needs.

Message 6 of 6

thanks so much

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost