Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

[Connect MDL] Problem with mdlMesh_getPolyfaceArrays

$
0
0

Hei,

My system is windows 7, VS 2015, Connect update 6

I am trying to use mdlMesh_getPolyfaceArrays bu having some problems

This is the code:

	    Bentley::Bstdcxx::bvector<int>*        pIndices ;
		Bentley::Bstdcxx::bvector<DPoint3d>*  ppXYZ ;
		int       pNumIndexPerFace;
		int       pNumFace;
	    StatusInt iSuccess = mdlMesh_getPolyfaceArrays(pMeshED,pIndices,ppXYZ,&pNumIndexPerFace,&pNumFace);

Function returns pIndices = NULL and ppXYZ=Null while 

pNumIndexPerFace and pNumFace are correct results.

But if I change code:

	    Bentley::Bstdcxx::bvector<int>        pIndices ;
		Bentley::Bstdcxx::bvector<DPoint3d>  ppXYZ ;
		int       pNumIndexPerFace;
		int       pNumFace;
	    StatusInt iSuccess = mdlMesh_getPolyfaceArrays(pMeshED,&pIndices,&ppXYZ,&pNumIndexPerFace,&pNumFace);

 It works fine.

I can not understand what is the problem with using pointers.

thanks

Nenad


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>