Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computer Aided Design - CAD > Programming with Microstation > Problem with md...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 429 of 473
Post > Topic >>

Problem with mdlLinear_extract

by biagio.carrella@[EMAIL PROTECTED] Apr 11, 2007 at 03:12 AM

Hi,
using the following code, I had unexpected returned values .
foobar(MSElementDescr* curElm,List lineList) {

  DPoint3d* linePts;
  int numVert =0, elemType;

  elemType = mdlElement_getType (&curElm->el);

  if( LINE_ELM == elemType ) {

      linePts = (DPoint3d*) malloc(2*(sizeof(DPoint3d)));
      memset(linePts, 0, 2*(sizeof(DPoint3d)));
      mdlLinear_extract(linePts,&numVert,&curElm-
>el,mdlModelRef_getActive());
      printf("linePts[0].x=%f\tlinePts[1].x=%f
\n",linePts[0].x,linePts[1].x);
  }

}

Printed values are: linePts[0].x=-1.#QNAN0 and
linePts[1].x=-1235866245348632500000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000.000000

What is my error?

I hope you can help me.
Thanks

Biagio
 




 1 Posts in Topic:
Problem with mdlLinear_extract
biagio.carrella@[EMAIL PR  2007-04-11 03:12:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 16:54:38 CST 2008.