Skip to content

fig2u3d (partially) working on 2015a... #6

Open
@JavierBurg

Description

@JavierBurg

Thank you very much for this wonderful package that allows me to insert interactive 3d plots in my presentations!!!

Nevertheless, I had a lot of problems to make it work in Matlab R2015a, and my success is only partial...

First, I had a problem with the file mesh_normals.m in fig2idtf/auxiliary. It seems that this script does not produce / generate the correct normals for mesh surfaces. So, it generates an error when 'normals' is empty: when it tries to normalize the normal vectors, it complains about the operation ./ between empty matrices. I've included a check for this condition that returns an empty 'normals' without normalization.

And I had to manually comment some lines in other scripts that check the condition isnan() for various handles (two places): fig2idtf/preprocess/u3d_pre_contourgroup.m and fig2idtf/preprocess/u3d_pre_quivergroup.m

With these corrections, fig2u3d is able to generate the idtf file, but then the system explodes when it calls to IDTFConverter. I had the same error 81110005 that was previously commented in another message.

If I edit manually the IDTF file and remove from the MESH resource everything related to NORMALS
(I set MODEL_NORMAL_COUNT to 0, and remove MESH_FACE_NORMAL_LIST and MODEL_NORMAL_LIST) I can run the IDTFConverter without any flaw and the u3d file works great in latex and PDF.

I guess that the problem comes from the file mesh_normals, but I cannot find useful information about this function.

Any comment that can help me to correct this issue will be welcome.

Javier

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions