Dear Xavi,
Apologies for the late reply, we only rediscovered your post today. As to your
question: the class responsible for drawing both planes and their surrounding
edges (tubes) in the 3D render window is mitk::Geometry2DDataVtkMapper3D.
The geometry shape (and thus also the extent) of the planes is derived from 3D
bounds represented by a Geometry3D object. The used Geometry3D is either a
"reference geometry" explicitly set for the plane, or calculated from the
bounding box of the entire scene.
The reference geometry in the first case is a bounds geometry object which is
explicitly assigned to the 2D Geometry to define how it shall be clipped. When
you are dealing with sliced geometry (e.g. when rendering mitk::Image), this is
automatically done in SlicedGeometry3D. In the second case, if no reference
geometry is specified, the bounds of the entire scene is used for clipping. If
you have multiple objects in the scene, the bounds encapsulate all present
objects.
The radius of the tubal edge is directly derived from the geometry's diagonal
(search for "tubeRadius" in the source code).
To make sure that planes are correctly centered, you have to use a Geometry
with a sufficiently high resolution (i.e. spacing must be very small) since
this will determine where the planes are placed.
Did you try what happens to the planes when you do a "global reinit" or a
"reinit" on the object in the DataStorage?
Best regards,
Mathias
Von: Xavier Planes [mailto:[email protected]]
Gesendet: Donnerstag, 7. Oktober 2010 15:10
An: [email protected]
Betreff: [mitk-users] Render small objects
Dear all,
I'm trying to use small surface meshes and images in MITK
(<0.5mm) but the cutting planes are not correctly centered and the corners of
the cutting planes are too big. Does anybody know how to adjust the radius of
the corners depending on the image size and how to correctly set the origin of
the cutting planes for small shapes?
Thanks!
Xavi
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users