Menu

Is model structure preserved on import?

Help
IanH
2017-12-16
2023-09-21
  • IanH

    IanH - 2017-12-16

    I've successfuly loaded an obj model using a TGLFreeForm object into my scene.

    But, the model file is internally structured into a number of Named Objects which I'd like to navigate within my code - Is this model structure information preserved when imported into GLScene?

    I've tried using MeshObjectLists and Components to see if the information is there, but without success. I've also tried setting vGLFileOBJ_SplitMesh to True, but the software crashes when loading my model.

    Thanks
    Ian

     
  • Jerome.D (BeanzMaster)

    Hi Ian, the parts of your OBJ must be in "FreeForm.MeshObjects.Items[x].FaceGroups"

     
  • IanH

    IanH - 2017-12-18

    Hi Jerome

    Thanks for that pointer. I've got it working now :-)

    Ian

     
  • Thomas

    Thomas - 2023-09-21

    Hey,

    Any add-on information about this? or a demo example? I have the same goal. But it crashes for me after turning on the breaking on vGLFileOBJ_SplitMesh to True:

    line 930 (GLS.FileOBJ) AffineVector := mesh.TexCoords[TexCoordIdx];

    What do i do after doing :
    Model.LoadFromFile('EpicModel.obj');
    // more further code to make the different mesh objects available to use?

    Noobie could use some help :)

    Greetigns!
    Stranger

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.