"Emiliano Antonello" wrote:
Italian: Devo ricreare una funzione mdl che esegue l'analisi della curvatura di una B-Spline. Come posso fare? C' qualcuno che ha qualche idea?
English: I need to create a function mdl that made the "curve analyze" of a B-Spline (Into Microstation that function alredy exist). How can made this? There is someone that have a idea?
Thanks Emiliano
Hi,
What are you exatly wanting? If you want some length information the stuffs like that, try :
#include <mdl.h>
int mdlMeasure_linearProperties
(
double *lengthP,/*<=length of element */
Dpoint3d *centroidP,/*<=centroid of curve */
Dpoint3d *momentP,/*<=second moments of curve */
double *iXYP,/*<=product of inertia (xy)*/
double *iXZP,/*<=product of inertia (xz)*/
double *iYZP,/*<=product of inertia (yz)*/
Dpoint3d *principalMomentsP,/*<=principal moments */
Dpoint3d *principalDirectionsP,/*<=principal axes */
MSElementDescr *edP,/*=>element to measure */
double tolerance /*=>stroking tolerance */
);
the function bellow can be used to find the your element in the dgn file:
mdlAssoc_getElement
#include <mdl.h>
int mdlAssoc_getElement
(
MSElementUnion *element,/*<=elem located by ID number */ ULong *filePos,/*<=file position of element */ ULong elemID,/*=>element ID number */ int fileNum /*=>file number to search in */ );
Try to be more specific again, about what kind of information of B-spline you are wanting.
I hope that helps you,
Guilherme and Cristiano from Brazil.