RE: drawing 3D lines and OpenGL viewer

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Wed, 7 Feb 2007 09:16:42 +0100


Hi,  

TPolyMarker3D draws a 3D polymarker. To draw a 3D line you should use TPolyLine3D.  

Cheers,                Olivier Couet

________________________________

From: owner-roottalk_at_pcroot.cern.ch
[mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of John Zoidberg Sent: Tuesday, February 06, 2007 9:24 PM To: roottalk_at_root.cern.ch
Subject: [ROOT] drawing 3D lines and OpenGL viewer

Hi,

I am trying to draw lines in a 3D display. Currently, I am using a TPolyMarker3D object and the setpoint function. The problem is that once I draw about 600000 or more points (3000 lines with 200 points), the display becomes very slow.

I wanted to know if there already exists some function drawing 3D lines which is better optimized.
Because as I understand it, if the 3D viewer considers every point as a 3D object, he will calculate the rotation for every point instead of simply rotating the "line".

Mike Received on Wed Feb 07 2007 - 09:16:50 CET

This archive was generated by hypermail 2.2.0 : Wed Feb 07 2007 - 11:50:01 CET