Jump to content

Recommended Posts

Posted

I am not looking for the command. I want to know how CAD measures the distance between 2 points. which algorithm does the CAD code uses to measure the distance between 2 points produced from some object intersections?

Posted

probably standard geometry relationships/formulas.

 

say you have p1 with coordinates x1,y1,z1

the distance between p1 and p2 is

 

((x2^2-x1^2)+((y2^2-y1^2)+(z2^2-z1^2))^0.5

Posted

the case is not just having 2 obvious points p1& p2. imagine in a complex drawing with circles, triangles and lines intersecting each other, CAD can give you the distance between each random intersecting points, I do not think it calculates coordinates of all intersecting points.

Posted

Every AutoCAD object it is derived from a base object.

 

For what I know about Custom Objects, you can define the osnaps points for each of your objects, then that can be read by many of the built-in commands or functions.

Posted
I do not think it calculates coordinates of all intersecting points.

 

That's not such a difficult thing to do o:)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...