NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 138 - 3D Viewer fails when rotating/zooming on a multimesh that has a mesh with a list of zero triangles
3D Viewer fails when rotating/zooming on a multimesh that has a mesh with a l...
Status: RESOLVED MOVED
Product: Fiji
Classification: Unclassified
Component: 3D Viewer
unspecified
PC Linux
: P4 normal
Assigned To: Benjamin Schmid
Depends on:
Blocks:
 
Reported: 2010-02-08 17:28 CST by Albert Cardona
Modified: 2014-06-16 13:42 CDT
3 users (show)

See Also:

Description Albert Cardona 2010-02-08 17:28:08 CST
The error happens consistently when one of the meshes added to the MultiMesh is made of a list of empty triangles. Such mesh should either be refused from being added to the Multimesh, or intenrally whatever computations go for estimating its bounding box etc. take the fact that it's empty into account.

At the moment, such empty triangle list is, I suspect, resulting into an inappropriate 3D affine transform for the MultiMesh object.

The exception below happens for example when trying to rotate such MultiMesh. And it's very consistent! Happens always.

I have observed these as of today. Never before.


Exception occurred during Behavior execution:
javax.media.j3d.BadTransformException: TransformGroup: non-affine transform
	at javax.media.j3d.TransformGroup.setTransform(TransformGroup.java:137)
	at ij3d.behaviors.ViewPlatformTransformer.rotateXY(ViewPlatformTransformer.java:312)
	at ij3d.behaviors.InteractiveViewPlatformTransformer.rotate(InteractiveViewPlatformTransformer.java:61)
	at ij3d.behaviors.InteractiveBehavior.doProcess(InteractiveBehavior.java:281)
	at ij3d.behaviors.InteractiveBehavior.processStimulus(InteractiveBehavior.java:104)
	at javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:192)
	at javax.media.j3d.J3dThread.run(J3dThread.java:275)








Information about your version of Java - this information is useful for the Fiji developers:
  os.arch => amd64
  os.name => Linux
  os.version => 2.6.31-19-generic
  java.version => 1.6.0_17
  java.vendor => Sun Microsystems Inc.
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.6.0_17-b04
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 14.3-b01
  java.vm.vendor => Sun Microsystems Inc.
  java.vm.info => mixed mode
  java.awt.graphicsenv => sun.awt.X11GraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.6
  sun.cpu.endian => little
  sun.desktop => gnome
  file.separator => /
Comment 1 Albert Cardona 2010-02-08 17:39:36 CST
"I have observed these as of today. Never before."

I must comment here that I think I had never tried yet a CustomMultiMesh with an empty list of triangles inside.

For further proof, I git bisected to the last known version--and that version also failed. Then I realized that it was the CustomMultiMesh that I had crafted the one making the 3D Viewer fail.
Comment 2 Johannes Schindelin 2011-03-23 15:12:02 CDT
Bene?
Comment 3 Curtis Rueden 2014-06-16 13:42:48 CDT
Migrated to https://github.com/fiji/3D_Viewer/issues/2