By kami
#269494
Hi JD,

today I got a problem with the meshing of my scene. the following error message is created:
Code: Select all
********************************
* Maxwell for Rhino 4
* Version: 1.6.8.0
********************************
* Session Log
* Date: 15.05.2008
* Time: 11:32:11.1715000
* File: file://C:\Documents and Settings\Christoph Deiters\Application Data\MaxwellDotNET\Plugins\Rhino\4.0\Logs\session_log_11_32_11____5_15_2008.txt
********************************
* line 1: OnLoadPlugIn, _info, Checking required paths
* line 2: CheckRequiredPaths, _info, Maxwell root directory found  at: C:\Program Files\Maxwell
* line 3: CheckRequiredPaths, _info, mxcl.exe found  at: C:\Program Files\Maxwell\mxcl.exe
* line 4: CheckRequiredPaths, _info, mxed.exe found at: C:\Program Files\Maxwell\mxed.exe
* line 5: CheckRequiredPaths, _info, mxst.exe found at: C:\Program Files\Maxwell\mxst.exe
* line 6: OnLoadPlugIn, _info, Creating MaxwellDropTarget
* line 7: OnLoadPlugIn, _info, Retreiving user-preferences
* line 8: OnLoadPlugIn, _info, Enabling Scene events
* line 9: OnLoadPlugIn, _info, starting plugin update status thread
* line 10: OnLoadPlugIn, _info, Synchronizing cameras
* line 11: CreateCamera, _info, created camera: Perspective
* line 12: OnLoadPlugIn, _end, Plugin-load finished successfully
* line 13: RestoreViewport, _info, ActiveDoc.GetPathName is: 
* line 14: set_CurrentDocumentDirectory, _end, m_cd = Z:\0107 ww efh rüschlikon\3d
* line 15: OnBeginOpenDocument, _info, filename: Z:\0107 ww efh rüschlikon\3d\080514g rueschlikon (balustrade).3dm
* line 16: ReadCompleteDocument, _begin, reading complete document: Z:\0107 ww efh rüschlikon\3d\080514g rueschlikon (balustrade).3dm
* line 17: ReadCompleteDocument, _info, Z:\0107 ww efh rüschlikon\3d
* line 18: ReadCompleteDocument, _end, finished reading complete document
* line 19: ReadDocument, _end, sucessfully read Maxwell data
* line 20: set_CurrentDocumentDirectory, _end, m_cd = Z:\0107 ww efh rüschlikon\3d\objekte
* line 21: OnBeginOpenDocument, _info, filename: Z:\0107 ww efh rüschlikon\3d\objekte\geländer.3dm
* line 22: ReadCompleteDocument, _begin, reading complete document: Z:\0107 ww efh rüschlikon\3d\objekte\geländer.3dm
* line 23: ReadCompleteDocument, _info, Z:\0107 ww efh rüschlikon\3d\objekte
* line 24: ReadPartialDocument, _begin, reading partial document: Z:\0107 ww efh rüschlikon\3d\objekte\geländer.3dm
* line 25: RestoreViewport, _info, ActiveDoc.GetPathName is: 
* line 26: ModifyMapping, _exit, unable to get object frame
* line 27: ModifyMapping, _exit, unable to get object frame
* line 28: ModifyMapping, _exit, unable to get object frame
...
* line 2317: ModifyMapping, _exit, unable to get object frame
* line 2318: ModifyMapping, _exit, unable to get object frame
* line 2319: ReadPartialDocument, _end, finished reading partial document
* line 2320: ReadDocument, _end, sucessfully read Maxwell data
* line 2321: OnEndOpenDocument, _info, filename: Z:\0107 ww efh rüschlikon\3d\objekte\geländer.3dm
* line 2322: set_CurrentDocumentDirectory, _end, m_cd = Z:\0107 ww efh rüschlikon\3d
* line 2323: OnEndOpenDocument, _info, filename: Z:\0107 ww efh rüschlikon\3d\080514g rueschlikon (balustrade).3dm
* line 2323: mxVersionChecker.CheckForUpdate(), _notify, checking for plugin updates...
* line 2324: mxVersionChecker.CheckForUpdate(), _notify, the installed plugin version (1.6.8.0) is up-to-date.
* line 2325: Maxwell_Render, _notify, Maxwell_Render (RenderScene)
* line 2326: PrintPathStatusReport, _info, -- BEGIN Path Status Report --
* line 2327: PrintPathStatusReport, _info, Total number of Materials: 37
* line 2328: PrintPathStatusReport, _info, Invalid Paths for: Image Based Environments
* line 2329: PrintPathStatusReport, _info, MAP @ MXI/HDR 'ImageBased->Background' :  - X:\0000 büro\3d\hdri\SKIESV2_08_sonne.hdr
* line 2330: PrintPathStatusReport, _info, MAP @ MXI/HDR 'ImageBased->Illumination' :  - X:\0000 büro\3d\hdri\SKIESV2_08_sonne.hdr
* line 2331: PrintPathStatusReport, _info, MAP @ MXI/HDR 'ImageBased->Reflection' :  - X:\0000 büro\3d\hdri\SKIESV2_08_sonne.hdr
* line 2332: PrintPathStatusReport, _info, MAP @ MXI/HDR 'ImageBased->Refraction' :  - X:\0000 büro\3d\hdri\SKIESV2_08_sonne.hdr
* line 2333: PrintPathStatusReport, _info, -- END Path Status Report --
* line 2334: WriteMxs, _info, rendering camera: 01_Strasse
* line 2335: WriteMxs, _notify, Generating new MXS meshes, press CTRL+ALT+SHIFT to cancel
* line 2336: meshing 00.0% completed (0 of 9369)
* line 2337: meshing 10.0% completed (937 of 9369)
* line 2338: meshing 20.0% completed (1874 of 9369)
* line 2339: meshing 30.0% completed (2811 of 9369)
* line 2340: meshing 40.0% completed (3748 of 9369)
* line 2341: meshing 50.0% completed (4685 of 9369)
* line 2342: meshing 60.0% completed (5622 of 9369)
* line 2343: meshing 70.0% completed (6559 of 9369)
* line 2344: meshing failed: External component has thrown an exception. (see Log Viewer for details)
* line 2345: BEGIN: System.Runtime.InteropServices.SEHException
* line 2346: Message: External component has thrown an exception.
* line 2347: Source: MaxwellDotNetSdk
* line 2348: BEGIN STACKTRACE: 'System.Runtime.InteropServices.SEHException'
* line 2349: - at Cmaxwell.createMesh(Cmaxwell* , Cobject* , SByte* , UInt32 , UInt32 , UInt32 , UInt32 )
* line 2350: - at Maxwell.Scenes.Scene.MeshWriter.BeginMesh(String Name, Int32 nVertexes, Int32 nNormals, Int32 nTriangles, Int32 nPositionsPerVertex)
* line 2351: - at MaxwellPlugin.mxMesher.WriteMesh()
* line 2352: - at MaxwellPlugin.mxMesher.ExportGeometry(Boolean selectedObjectsOnly)
* line 2353: END STACKTRACE: 'System.Runtime.InteropServices.SEHException'
* line 2354: END: System.Runtime.InteropServices.SEHException
* line 2355: ExportScene, _info, total export time: 00:00:17.6718750
* line 2356: OnEndWriteMxs, _notify, mesh export was cancelled
* line 2357: mxLogView.OnShowWindow, _info, sz=500x300h, loc=400,400(virtual), pWnd=66220
any idea, what's causing this and what I can do? SelBadObjects and ...-Ex didn't show anything.
greets,
kami
By JDHill
#269506
Hi Kami,

Unfortunately, the nature of an SEHException is this: it is an exception thrown by low-level code (i.e. by a component underneath the plugin) which is not mapped to any specific .Net Exception. So all I can say about it is that something very bad is happening when the Maxwell SDK (this is where you see that the error started in an object named Cmaxwell), which the plugin is built on, attempts to create this particular mesh.

If I had this happen to me (I haven't), I would probably either try re-meshing the model using different parameters (in Rhino), or if that didn't help, I would manually export the geometry out to another file, change meshing parameters and the tolerance on the document (i.e. Document Properties > Units > Units and tolerances), and cause the objects to be re-meshed by Rhino.

Besides for those ideas, I would also try: window half the objects, and export an MXS using the plugin's Maxwell_RenderToMxs command with the RenderSelectedObjects option (same as a right-click on the 4th button in the Rendering toolbar). If the export is successful, I would use Rhino's Hide command on the object-selection, select another half of the remaining objects, and repeat this process. If you are able use this method to find a particular object which causes the problem, I would like to see it, to see if there is anything special about it which the plugin could be checking for.

Thanks,

JD
By kami
#269567
Hi JD

I isolated the mesh which caused the problem. It's a joined object of several meshes ... if I explode it, everything works fine.
It's just weird. I often got many problems, which the command SelBadObjectsEx doesn't find. Sometimes I can isolate the object with SelBadObjects and repair it myself... but then there are times where objects remain which can't be rendered.
Also, I know I rendered the same object before and didn't changed it since then. But somehow it got corrupt.

http://deiters.ch/maxwell/zaun.zip

Greets and thanks for the help,
Kami
By JDHill
#269571
Thanks for the file, Kami, unfortunately it works fine here both on 1.6.8 and on my current code. If it is consistently repeatable for you, I would make sure to re-boot the machine, and if it still persists, I would run a memory-check. As for bad meshes being common, I agree, and I just use Moi3d to work on any object I have trouble with in Rhino - many times it seems to do a better job in this area.

Cheers,

JD
By kami
#269576
Hi JD
your right, this file is working fine too. I didn't reopen it after saving.
But when it was still open (after all other objects were deleted) it didn't work. Whatever ... it's not so much of a problem and it doesn't happen that often.
Thanks,
Kami
OutDoor Scenery Question

you said: After you apply the image to the polygo[…]

fixed! thank you - customer support! -Ed