[vtkusers] Question on vtk programming style.

Mark Beall mbeall2 at simmetrix.com
Mon Aug 21 13:57:31 EDT 2000


The way it is makes sense to me. The number corresponds to the
topological dimension of what makes up the representation (a surface 
is 2 dimensional, a line is 1 dimensional, a point is 0 dimensional).
Anything else would be very arbitrary.

mark

>hi,
>
>	I have a question and a feature request.  Consider the
>vtkProperty object.  The SetRepresentation function can be given one
>of three arguments, 0, 1, or 2 which respectively stand for
>VTK_POINTS, VTK_WIREFRAME, and VTK_SURFACE.  
>
>	Now why has this particular order been chosen?  Wouldn't it
>have been nicer to use numbers as per an alphabetical listing?  Can
>this be added/changed in the future?
>
>prabhu
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list