[GSOC2015][StepViewer Project]

65 views
Skip to first unread message

Milinda Fernando

unread,
Jul 11, 2015, 1:04:16 PM7/11/15
to brlcad...@lists.sourceforge.net, scl...@googlegroups.com
Hi Sean and brlcad developers,

Currently I am working on how to visualize the ONBrep structure in OpenGL view. The current implementation just iterate for the edges in the shape and visualize those edges in the OpenGL view. I believe that we can construct the solid using the basic brep primitives but Charlie mentioned that it would be out of the project scope. 

So my question is How do I visualize the ONBrep structure shape as a solid in OpenGL view ? Any ideas or suggestions regarding this matter is highly appreciated. 

Thank You. 


--
Milinda Fernando.
Department of Computer Science and Engineering
University of Moratuwa
Sri Lanka.

Anton Shabalin

unread,
Jul 13, 2015, 1:32:44 AM7/13/15
to scl...@googlegroups.com, brlcad...@lists.sourceforge.net

Hi Milinda.
IMHO To visualize  step geometry you need to get face triangles. So you need to find out how BRL CAD makes face triangulation and where it store triangles =)

Milinda Fernando

unread,
Jul 13, 2015, 10:40:47 AM7/13/15
to scl...@googlegroups.com, brlcad...@lists.sourceforge.net
Hi Anton,

Thank you very much for your reply. I've been stuck at this point for weeks now. I will ask from the brlcad developers how to get face triangles from the ONBrep structure. 

Clifford Yapp

unread,
Jul 13, 2015, 10:48:38 AM7/13/15
to scl...@googlegroups.com, Developer discussions
Milinda,

Take a look at rt_brep_polt_poly and poly2tri_CDT in
src/librt/primitives/brep/brep.cpp

CY
> --
> You received this message because you are subscribed to the Google Groups
> "STEPcode - Developers Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to scl-dev+u...@googlegroups.com.
> To post to this group, send email to scl...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/scl-dev/08f85a4f-4cbd-477f-b769-39931c8475b1%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

Milinda Fernando

unread,
Jul 13, 2015, 11:00:24 AM7/13/15
to scl...@googlegroups.com, Developer discussions
Hi Clifford,

I will try that and contact you if I have questions. :)

Thank You. 


You received this message because you are subscribed to a topic in the Google Groups "STEPcode - Developers Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scl-dev/g-m8m07daLc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scl-dev+u...@googlegroups.com.

To post to this group, send email to scl...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages