Hi Milinda,
Thanks for the link to the files and the description of your process.   On
inspection, the STEP files contain advanced BREP geometry.   Your
description of your process indicates that you are drawing the edges in the
BREP.   So it looks like wireframe geometry when displayed since you are
only drawing the edges, but not the faces/surfaces that would be needed to
view a solid.   I understand some of STEP, but not the internal workings of
BRL-CAD or OpenGL.   Your questions will have to be addressed by other
mentors.
Regards, Charlie

On Sun, Jun 28, 2015 at 1:46 AM, Milinda Fernando <milind...@gmail.com>
wrote:

> Hello Charlie,
>
> >>Milinda, did you get this email?
>
> Yes I got this email. But I haven't enable the daily updates from the
> stepcode dev group. (Now I have enabled it). So I didn't see the email
> until now. Really sorry about that.
>
> >> Please post the STEP files you are using, and inspect them to see what
> kind of geometry they contain
> Sure I will post the step files that I am using. I have pushed the step
> files that I am using to my code repository[1]
>
> Let me summarize you on what I am currently doing. Currently I am using
> step2g converter to convert the .step file to .g file. Then I read the .g
> file using db_open which returns the db_i* structure. Then I convert this
> db_i* to rt_brep_internal* structure which can be used to get ON_Brep*
> structure which means the boundary representation of the geometry. What you
> see in the photos that I sent you is, I iterate each edge in the ON_Brep*
> structure and draw each edge in the OpenGL viewer. Currently I
> am modifying the step2g code in order to make a statically linked library
> and I want to stop the conversion from .step to .g file. Instead of that I
> want to convert . step file to binary file which resides in the memory.
> Currently I have studies the *STEPWrapper::convert* method and I think we
> can stop it from ON_Brep* structure. The only problem is when I compile the
> edited step2g converter it mentions that SCHEMA_NAMESPACE is not defined. I
> don't know where it is defined. Can you please help me with this?
>
> >> Constructing solid geometry from wireframe geometry is something that
> I think is outside the scope of a STEP viewer.
> Okay. Then can you please explain me how we are going to get the solid
> which can be rendered in OpenGL viewer (without libdm) from the ON_Brep
> structure. ?
>
> [1].
> https://bitbucket.org/milindasf/stepviewer/src/9fa3a73b9c151dc520a9a94b173c7b5a5a2ae47d/STEP/?at=default
>
> Thank You.
>
>
> 2015-06-28 12:46 GMT+05:30 Charlie Stirk <char...@costvision.com>:
>
>> Milinda, did you get this email?   Regards, Charlie
>>
>> ---------- Forwarded message ----------
>> From: Charlie Stirk <char...@costvision.com>
>> Date: Tue, Jun 23, 2015 at 12:03 PM
>> Subject: Re: [scl-dev] Re: [GSOC2015][STEPViewer Project Progress]
>> To: Scl Dev <scl-...@googlegroups.com>
>>
>>
>> Hi Milinda,
>>
>> These screenshots look like wireframe geometry.   STEP files can contain
>> different shape representations for geometry, with or without topology,
>> like wireframes or surfaces.   STEP files can also contain advanced or
>> faceted b-rep.
>> http://www.wikistep.org/index.php/AP203ed2_conformance_classes
>> There is also a newer lightweight tesselated representation in STEP.
>>
>> Please post the STEP files you are using, and inspect them to see what
>> kind of geometry they contain.   Here is a good library of different STEP
>> files with different types of geometry.
>> http://www.steptools.com/support/stdev_docs/stpfiles/ap203/
>>
>> Constructing solid geometry from wireframe geometry is something that I
>> think is outside the scope of a STEP viewer.
>>
>> Regards, Charlie
>>
>> On Tue, Jun 23, 2015 at 8:53 AM, Milinda Fernando <milind...@gmail.com>
>> wrote:
>>
>>> Hello Charlie,
>>>
>>> As Sean has mentioned I have converted .step to .g and read the .g file
>>> iterated the edges of the .g file and visualized it in the OpenGL view. Now
>>> we have a wire frame like view in the OpenGL viewer[1][2][3]. (see the
>>> links for the images). In my point of view I think we have 2 main tasks.
>>>
>>>    - To modify the STEP2G lib to stop at memory residing binary format
>>>    (format 3)
>>>    - To construct the solid model form the brep elements. Do we have
>>>    some shortcut to his. ? Like we get brlcad solid and convert to OpenGL
>>>    solid type. Any suggestions ?
>>>
>>> Any suggestions on what to proceed with ?
>>>
>>> [1].
>>> https://bitbucket.org/milindasf/stepviewer/src/f888657ba24b0a1e7cfe9b6de27b6d356089ab22/images/step1.png?at=default
>>> [2].
>>> https://bitbucket.org/milindasf/stepviewer/src/f888657ba24b0a1e7cfe9b6de27b6d356089ab22/images/step2.png?at=default
>>> [3].
>>> https://bitbucket.org/milindasf/stepviewer/src/f888657ba24b0a1e7cfe9b6de27b6d356089ab22/images/step3.png?at=default
>>>
>>>
>>> On Sunday, June 21, 2015 at 9:33:05 AM UTC+5:30, Milinda Fernando wrote:
>>>>
>>>> Dear Charlie,
>>>>
>>>> I am writing this to inform about my progress in the STEPViewer
>>>> project. I have created a sample GUI for the STEPViewer and for the display
>>>> manager I have tried my best to use BRLCAD libdm. But I could not
>>>> initialize a proper libdm window. So I decided to go with OpenGL window
>>>> embedded in a Qt main window. I have implemented the rotation and zooming
>>>> functionality to the viewer. You can find the latest code for the project
>>>> from [1]. My development blogs can be found in [2].
>>>>
>>>> The most important part of the project is to visualize a STEP file in
>>>> the OpenGL view (display manager window).  For that I have converted the
>>>> .step file to .g file using STEP2G converter. The next task is to display
>>>> the .g file in the OpenGL view. For that I need to extract triangle details
>>>> from the .g file. I refereed to some librt code. What I found was if you
>>>> can read the .g file to rt_brep_internal structure then you can browse the
>>>> brep triangles which needs to visualize the model in OpenGL. Am I going in
>>>> the right direction? How can I visualize .g file in openGL view. ? Any
>>>> example codes that I should look at ? Any help regarding this is really
>>>> appreciated.
>>>>
>>>> The plan (As Sean mentioned) is if this is working we can make the
>>>> STEP2G conversion to stop at the serialized binary data so that the
>>>> conversion is in the memory and then visualize it.
>>>>
>>>> [1]. https://bitbucket.org/milindasf/stepviewer/src
>>>> [2]. http://brlcad.org/wiki/User:MilindaFernando/gsoc2015_devlog
>>>>
>>>  --
>>> 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+unsubscr...@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/2bcc0e01-d964-469c-bce8-c668c15d0d4e%40googlegroups.com
>>> <https://groups.google.com/d/msgid/scl-dev/2bcc0e01-d964-469c-bce8-c668c15d0d4e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>
>
> --
> Milinda Fernando.
> Undergraduate Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka.
> Blog: http://milindasf.blogspot.com/
>
>
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email & sms
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> _______________________________________________
> BRL-CAD Developer mailing list
> brlcad-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/brlcad-devel
>
>
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to