On Sun, Jul 17, 2016 at 11:26 PM, Inderpreet Singh <indrp...@gmail.com> wrote:
> I understood the implementation at mged level but yet can't see any
> code related to it. I am curious to know about your implementation.

Hello Inder,

Regarding implementation, here's what I have doing this till now

I found the file where mged and g-obj commands are being executed from
OGV (server/cfs_uploader.js)

The workflow is something like this

Step 1: Execute mged Ls command to get a list of objects
Filter the objects without .r extension in their name using a regular
expression.
(The regular expression that works here is /\w*\.r/g )

Step 2: Merge the name of objects using a for loop in the final merge
command, which looks something like following.
(mged filepath r newObjName u obj1 u obj 2 ....)

Step 3: Execute merge command

Step 4: Execute mged ls command once again to get list of objects
Use for loop to convert each object to its respective obj file.

The problem, However, I am having with this is
It doesn't execute in this sequence. Step 4 executes first and Step 3
afterwards. This makes the merged object in .g file, but its
respective obj file isn't generated.



-- 
Fear is wisdom in the face of danger. It’s nothing to be ashamed of

Gauravjeet Singh
http://github.com/gauravjeetsingh

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to