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 205 - 3D Viewer: MeshExporter fails with multi-coloured meshes
3D Viewer: MeshExporter fails with multi-coloured meshes
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
PC Linux
: P4 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2010-08-02 16:37 CDT by Mark Longair
Modified: 2011-03-24 14:22 CDT
2 users (show)

See Also:

Description Mark Longair 2010-08-02 16:37:41 CDT
Sorry, this is something I probably don't have time to fix myself, so I'm reporting as a bug
in case anyone else does:

If you try to export a mesh as Wavefront .OBJ or DXF which has had its colours set with:

  addTriangleMesh(List<Point3f> mesh, List<Color3f> colors, String name)

... you get a NullPointerException at WavefrontExporter.java:282 or at
MeshExporter.java:287 since getColor() for these meshes returns null.  (All the meshes
generated from Simple_Neurite_Tracer, for example, are created in this way.)

Information about your version of Java - this information is useful for the Fiji developers:
  os.arch => amd64
  os.name => Linux
  os.version => 2.6.32-24-generic
  java.version => 1.6.0_20
  java.vendor => Sun Microsystems Inc.
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.6.0_20-b02
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 16.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 Johannes Schindelin 2011-03-23 15:22:27 CDT
Bene?
Comment 2 Benjamin Schmid 2011-03-24 11:06:26 CDT
What does 'fail' mean? Does it crash? Is an exception thrown?
Comment 3 Albert Cardona 2011-03-24 11:31:54 CDT
(In reply to comment #2)
> What does 'fail' mean? Does it crash? Is an exception thrown?


Means an Exception, because meshes that have colors assigned to their vertices set the general mesh color to null.

I think I fixed this bug a few commits ago, while expanding the MeshExporter to support CustomMultiMesh.

Comment 4 Albert Cardona 2011-03-24 14:22:14 CDT
Just tried it, works for me in Fiji Madison and later.
Please reopen if the problem persists.