Hello every body
I'd like to use the mdlElmdscr_copyParallel function, but I don't know how to initialise some arguments.
this is the ptototype function:
What should I put in point and normal.
Thanks.
Unknown said:I'd like to use the mdlElmdscr_copyParallel function, but I don't know how to initialise some arguments. What should I put in point and normal?
What should I put in point and normal?
From MDL help: If distance is zero, the offset distance and direction is obtained from point. If distance is non-zero, it specifies the offset distance and the direction only is obtained from point
In other words, point is a direction vector that determines where the copy will be created relative to the existing element. The distance between the new and old elements is determined by one of two methods, depending on whether distance is zero.
Regards, Jon Summers LA Solutions
Hello,
Ok, but how will I initialize point.
this is what I want have as result
I'd like to copy the yellow rectangle, the distance is equal to 0.5.
So what will a put in point?
Unknown said:I'd like to copy the yellow rectangle, the distance is equal to 0.5
Point is a direction vector: try something like this:
DVec3d direction; // MDL specifies metrics in Units of Resolution (UORs) const double distance = mdlModelRef_getUorPerMaster (ACTIVEMODEL) * .5; mdlVec_fromXY (&direction, distance , 0);
Answer Verified By: cdiTech