Because the mcubes_modeller is a subclass of new_modeller, it responds to the "data?" message and can be used in the display_data pipeline. In addition, mcubes_modeller also inherits the convenience routines from new_modeller (e.g., output!).
normals boolean flag controls whether normal information is used or discarded
mcubes_file? Get the name of the marching cubes file.
normals_on! Normals read from the marching cubes file are used in output.
normals_off! Normals read from the marching cubes file are not used in output.
normals= value Set the normals flag directly. A value != 0 and normals are created.
normals? Get the value of the normals flag.
mcubes_modeller new: mc debugon! mcubes_file= `jaw2.tri' ;
actor new: mcubes_actor modeller= mc ; /* * Rendering stuff */ vector new: bbox dimension=6; bbox = ([mc bounds?]); camera new: c1 x_range=([bbox @1 ?],[bbox @2 ?]) y_range=([bbox @3 ?],[bbox @4 ?]) z_range=([bbox @5 ?],[bbox @6 ?]) position=(1,1,1) default! on! ;
environment new: _env variable=`LYMB_RENDERER' ; object# [_env value?] new: aren actors=[actor instances?] cameras=c1 render! ;