From: Marc Hehmeyer (hehmeyer++at++stn-atlas.de)
Date: 10/17/2000 00:44:22
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 | | +----------------------------------------------------------------------+
This archive was generated by hypermail 2b29 : Tue Oct 17 2000 - 00:43:48 PDT