Re: User Data in .pfb files

New Message Reply Date view Thread view Subject view Author view

From: Lawrence Bertoldi (lberto++at++sgi.com)
Date: 10/17/2000 07:53:36


Marc

Thanks, You da Man! the part I was missing was the pfdInitConverter()!

See Ya ~;-)

Marc Hehmeyer wrote:

> Hi Lawrence,
>
> for our Simulator we need to extract the smc-values of a flt-File,
> too. I have no problem with the Extraction.
> Perhaps you miss to init your flt-Loader by calling : pfdInitConverter
> ("dummy.flt").
> As i want to extract from every node, i use the ConverterMode :
> pfdConverterMode_flt( PFFLT_SORT_FEATURE, FLT_FTR_ALL )
> After these init-Calls I can get the SMC-Value by calling :
> - fltFeature *userdata1 = (fltFeature *) gstate->getUserData(
> pfdGetConverterMode_flt( PFFLT_USERDATA_SLOT ) );
> - int smc = fltGetFtrSMC (userdata1);
>
> hope this helps,
>
> Marc
>
>
> Lawrence Bertoldi wrote:
>
>> Lawrence Bertoldi wrote:
>>
>> > Hi all,
>> >
>> > I am working with a flt file trying to extract the FID and SMC
>> > data. I use intersection to grab the geoset
>> > and extract the geostate from that! But when I try to get the
>> > userdata from the geostate, I get a Null pointer.
>> >
>> > I have tried 2 methods
>> >
>> > fltFeature *ftr = (fltFeature*)gstate->getUserData( gstate,
>> > pfdGetConverterMode_flt( PFFLT_USERDATA_SLOT ) );
>> >
>> > and
>> >
>> > void* data = gstate->getUserData( gstate );
>> > this second try is discribed in the manpage for "fltFeature"!
>> >
>> > I set the flight loader to get the feature data as described in
>> > the man for pfdConverterMode_flt() ie:
>> > pfdConverterMode_flt( PFFLT_SORT_FEATURE, FLT_FTR_FACES );
>> >
>> > The geostate exists, I've used pfPrint to print it out although I
>> > saw no field that indicated userdata!
>> > So I am wondering if this feature works in ver 2.2 or if I made a
>> > mistake in my interpretation
>> > of same! And dose the flt loader support these features?
>> >
>> > --
>> > See Ya,
>> >
>> > Lawrence Eugene Bertoldi Technical Consultant
>> > vnet 238-8949 Silicon Graphics
>> > phone 301-572-8949 Silver Spring MD.
>> > email lberto++at++clubfed.sgi.com
>> >
>> > ~;-}>
>> >
>> >
>>
> --
> +----------------------------------------------------------------------+
> | Marc Hehmeyer | Phone +49/421/457-1896 |
> | STN-Atlas Elektronik | Fax +49/421/457-4120 |
> | Simulation Division | EMail hehmeyer++at++stn-atlas.de |
> | D-28305 Bremen | |
> +----------------------------------------------------------------------+
>
>

--
See Ya,

Lawrence Eugene Bertoldi Technical Consultant vnet 238-8949 Silicon Graphics phone 301-572-8949 Silver Spring MD. email lberto++at++clubfed.sgi.com

~;-}>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Oct 17 2000 - 07:54:20 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.