How can i cover a element using MDL?

Status
Not open for further replies.

Crigui

Usenet Archive
Joined
Sep 28, 2001
Messages
39
Reaction score
0
Hi,

If there is a element in a dgn file, how can i conver it? It can be all kind of lines, arcs etc... Should i find the mathmatic fuction of it?

We want to make points over this element, in known distances.

Thanks anyway...

Crigui.
 
Hello
If you want points on the element you can use the function mdlElmdscr_stroke or mdlElement_stroke

These functions give an array of DPoint3d.
The function works on all linear elements (line, linestring, shape, complexstring, arc, complexshape, curve, b-spline ...

The tolerance you give is the maximum distance between the line between 2 points and the original element.

If you want points on regualar distance the function can be

for(dist=0.0; dist < lentghtElement; dist+=deltaDist)
{
DPoint3d pt, tangent;
mdlElmdscr_pointAtDistance(&pt,&tangent,dist,elDP,10.0); // pt is the point on dist // tangent is the tangent directory of the element in that spot.
}

I think that one of these is the on you need

Greetings Olaf Giezenaar

"Jon Summers" wrote:
Crigui ...

> If there is a element in a dgn file, how can i conver it? Something happened in the translation. What do you mean by 'cover'?
 
Status
Not open for further replies.

Latest threads

Back
Top