On Sat, Jul 9, 2016 at 10:57 AM, Gauravjeet Singh
<gaurav.ishwer...@gmail.com> wrote:
> So is there any command in BRL-CAD that can hack the merge of several
> different obj files.
> Or Is there any parameter of g-obj command that will reduce the number
> of obj files created for a single .g file.

Obj file is created for each object in mged's .g file.
For instance, I have a model axis.g

if I do
$ mged axis.g ls -a

I will get the following
X X.r X1 X2 Y Y.r Y1 Y2 Z Z.r Z1 Z2 Z3 _GLOBAL all arb5 arb7 arb8 axis
ellg tgc tor x x.r xx xx.r y y.r yy yy.r z z.r zz zz.r

To reduce the no of files, one thing we can do is to merge objects. I
read the documentation of mged, and came to know about r command. if
we do the following in mged's console

$ r new u X u X1 u X2 u Y u Y1 u Y2 u Z u Z1 u Z2 u Z3 u all u
........ and so on
we get an object new, the obj file of this object will now compose of
an entire model.

I rendered just the new.obj file, and amazingly it rendered the complete model.


-- 
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