Menu

Outline a mesh

Help
2019-06-12
2019-07-26
  • shine world

    shine world - 2019-06-12

    Hi all,

    there is a way with GLScene to outline the faces of a Mesh ?
    For outline I mean have a line the mark the borders of mesh ( outline attachment, sample from a cad/cam).

    What I've got loading same stl file in glscene-mesh attachment.

    Thank you in advance for any suggestion.
    Best regards

     

    Last edit: shine world 2019-06-12
  • Jerome.D (BeanzMaster)

    Hi Shine i don't understand well what you want tou do exactly. It is to render the "contour" ? if yes you can take a look to silhouette's function (see Demos\specialsFX\shadowvolumes) for how to use it. and you can take a look at TGLHiddenLineShader and TGLOutlineShader

    Best regards

     
  • shine world

    shine world - 2019-07-26

    Seem shader only get external borders.
    I've found a git project for Unit which does what I mean:

    https://github.com/NoteCAD/NoteCAD/blob/master/Assets/Code/Utils/FullMesh.cs#L432

    I don't know C# so fine and overall how to manage it with GLScene classes/objects but I will try to implement same algorithm with Delphi.

     

    Last edit: shine world 2019-07-26

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.