Points may be either directly created or can be generated randomly. If randomly generated, the points lie in the range -0.5 <= x,y,z <=0.5.
Because the points_modeller is a subclass of new_modeller, it responds to the "data?" message and can be used in the display_data pipeline. In addition, points_modeller also inherits the convenience routines from new_modeller (e.g., output!).
Points modeller is often used as a source input to the data_probe or data_streamer objects.
random_points Boolean flag indicating whether random points are to be generated. By default value is true.
number_random_points?, no_random_points? value Get the number of random points to be generated.
(any display_data message) Any message that display data understands can also be sent to points_modeller. Hence it is possible to directly create points with the "points=" message, etc.
points_modeller new: pts_model number_random_points=100 ;
actor new: pts1 color=(1,0,0) modeller=pts_model ;