[vtkusers] RE: vtkusers digest, Vol 1 #2638 - 7 msgs

Goodwin Lawlor goodwin.lawlor at ucd.ie
Fri May 7 08:52:17 EDT 2004


Dean,

Here's an tcl example of an "orientation cube" using vector text:
http://www.bioengineering-research.com/vtk/axes_example.tcl

Hth,

Goodwin

--__--__--

Message: 1
From: <dean.inglis at camris.ca>
To: <vtkusers at vtk.org>
Subject: RE: [vtkusers] texture map to cube
Date: Thu, 6 May 2004 20:04:18 -0400

>What you need is an image which is an unfolded cube and then write a 
>texturemaptocube which computes the texture coords correctly

      ------
      | +Z |
      ------
 ---------------------
 | -X | -Y | +X | +Y |
 ---------------------
      ------
      | -Z |
      ------

>like this, then compute the texcoords from the offsets. Is that what 
>you're trying to do? JB

JB, John thanks for your responses.

yep, that's what I'm trying to do.  I fiddled about with a modified
/Examples/VisualizationAlgorithms/Tcl/TransformTextureCoords.tcl
to experiment with a vtkCubeSource, but it appears I'll have to
implement vtkTextureMapToCube.  I'm trying to develop a corner
orientation marker to make vtkPVAxesWidget more general: e.g., currently
there is

vtkPVAxesActor axesActor
vtkPVAxesWidget widget
  widget SetAxesActor axesActor

but what I envision is

vtkCubeOrientationActor cubeOrienter
vtkOrientationMarkerWidget widget
widget SetOrientationMarker cubeOrienter
or, 
vtkAxesOrientationActor axesOrienter
widget SetOrientationMarker axesOrienter

I'll keep tinkering...(unless someone on VolView
wants to give me a hint :)

Dean


--__--__--




More information about the vtkusers mailing list