aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile517
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.am26
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.in517
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.c169
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.h31
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.c278
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.h34
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_chunks.h114
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.c80
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.h32
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object_types.h61
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h64
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.am21
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.in512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf.c646
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.c23
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.h42
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h95
19 files changed, 3774 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile
new file mode 100644
index 0000000..0537b54
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile
@@ -0,0 +1,517 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_3dm/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15
16
17
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_3dm
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_3dm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3dm_la_OBJECTS = imp_3dm.lo imp_3dm_callbacks.lo \
59 imp_3dm_object.lo
60imp_3dm_la_OBJECTS = $(am_imp_3dm_la_OBJECTS)
61#am_imp_3dm_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_3dm_la_SOURCES)
75DIST_SOURCES = $(imp_3dm_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
80AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
81AR = ar
82AS = as
83AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
84AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
85AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
86AWK = gawk
87CC = gcc
88CCDEPMODE = depmode=gcc3
89CFLAGS = -g -O2
90CPP = gcc -E
91CPPFLAGS =
92CXX = g++
93CXXCPP = g++ -E
94CXXDEPMODE = depmode=gcc3
95CXXFLAGS = -g -O2
96CYGPATH_W = echo
97DBG_CFLAGS = -O2
98DEBUG = 0
99DEFS = -DHAVE_CONFIG_H
100DEPDIR = .deps
101DLLTOOL = dlltool
102ECHO = echo
103ECHO_C =
104ECHO_N = -n
105ECHO_T =
106EGREP = /bin/grep -E
107EXEEXT =
108F77 =
109FFLAGS =
110GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
111GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
112GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
113GLIB_GENMARSHAL = glib-genmarshal
114GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
115GLIB_MKENUMS = glib-mkenums
116GOBJECT_QUERY = gobject-query
117GREP = /bin/grep
118GTKDOC_CHECK = /usr/bin/gtkdoc-check
119GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
120GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
121HTML_DIR = ${datadir}/gtk-doc/html
122INSTALL = /usr/bin/install -c
123INSTALL_DATA = ${INSTALL} -m 644
124INSTALL_PROGRAM = ${INSTALL}
125INSTALL_SCRIPT = ${INSTALL}
126INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
127LDFLAGS =
128LEX = flex
129LEXLIB = -lfl
130LEX_OUTPUT_ROOT = lex.yy
131LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
132LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
133LIBOBJS =
134LIBS = -lm
135LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
136LIBXML2_CFLAGS = -I/usr/include/libxml2
137LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
138LN_S = ln -s
139LTLIBOBJS =
140LTVERSION = 0:8:0
141MAGIC_LIBS = -lmagic
142MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
143MATH_LIBS = -lm
144MKDIR_P = /bin/mkdir -p
145OBJDUMP = objdump
146OBJEXT = o
147PACKAGE = libg3d
148PACKAGE_BUGREPORT =
149PACKAGE_NAME =
150PACKAGE_STRING =
151PACKAGE_TARNAME =
152PACKAGE_VERSION =
153PATH_SEPARATOR = :
154PKG_CONFIG = /usr/bin/pkg-config
155PLUGINS_LDFLAGS = -avoid-version -export-dynamic
156RANLIB = ranlib
157SET_MAKE =
158SHELL = /bin/bash
159STRIP = strip
160VERSION = 0.0.8
161XML2_CONFIG = /usr/bin/xml2-config
162XML_CPPFLAGS = -I/usr/include/libxml2
163XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
164Z_CFLAGS =
165Z_LIBS = -lz
166abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm
168abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
170ac_ct_CC = gcc
171ac_ct_CXX = g++
172ac_ct_F77 =
173am__include = include
174am__leading_dot = .
175am__quote =
176am__tar = ${AMTAR} chof - "$$tardir"
177am__untar = ${AMTAR} xf -
178bindir = ${exec_prefix}/bin
179build = x86_64-unknown-linux-gnu
180build_alias =
181build_cpu = x86_64
182build_os = linux-gnu
183build_vendor = unknown
184builddir = .
185datadir = ${datarootdir}
186datarootdir = ${prefix}/share
187docdir = ${datarootdir}/doc/${PACKAGE}
188dvidir = ${docdir}
189exec_prefix = ${prefix}
190host = x86_64-unknown-linux-gnu
191host_alias =
192host_cpu = x86_64
193host_os = linux-gnu
194host_vendor = unknown
195htmldir = ${docdir}
196includedir = ${prefix}/include
197infodir = ${datarootdir}/info
198install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
199libdir = ${exec_prefix}/lib
200libexecdir = ${exec_prefix}/libexec
201localedir = ${datarootdir}/locale
202localstatedir = ${prefix}/var
203mandir = ${datarootdir}/man
204mkdir_p = /bin/mkdir -p
205oldincludedir = /usr/include
206pdfdir = ${docdir}
207prefix = /usr/local
208program_transform_name = s,x,x,
209psdir = ${docdir}
210sbindir = ${exec_prefix}/sbin
211sharedstatedir = ${prefix}/com
212srcdir = .
213sysconfdir = ${prefix}/etc
214target_alias =
215top_builddir = ../../..
216top_srcdir = ../../..
217pluginimpdir = $(pkglibdir)/plugins/import
218#pluginimp_LTLIBRARIES = imp_3dm.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 -O2 -DDEBUG=0 \
223 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
224
225INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_3dm_la_SOURCES = imp_3dm.c imp_3dm.h \
231 imp_3dm_callbacks.h imp_3dm_callbacks.c \
232 imp_3dm_object.c imp_3dm_object.h \
233 imp_3dm_chunks.h imp_3dm_object_types.h imp_3dm_types.h
234
235imp_3dm_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_3dm.la: $(imp_3dm_la_OBJECTS) $(imp_3dm_la_DEPENDENCIES)
297 $(LINK) $(am_imp_3dm_la_rpath) $(imp_3dm_la_OBJECTS) $(imp_3dm_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305include ./$(DEPDIR)/imp_3dm.Plo
306include ./$(DEPDIR)/imp_3dm_callbacks.Plo
307include ./$(DEPDIR)/imp_3dm_object.Plo
308
309.c.o:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c $<
315
316.c.obj:
317 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
319# source='$<' object='$@' libtool=no \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(COMPILE) -c `$(CYGPATH_W) '$<'`
322
323.c.lo:
324 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
325 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
326# source='$<' object='$@' libtool=yes \
327# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
328# $(LTCOMPILE) -c -o $@ $<
329
330mostlyclean-libtool:
331 -rm -f *.lo
332
333clean-libtool:
334 -rm -rf .libs _libs
335
336ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
337 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
338 unique=`for i in $$list; do \
339 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
340 done | \
341 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
342 END { if (nonempty) { for (i in files) print i; }; }'`; \
343 mkid -fID $$unique
344tags: TAGS
345
346TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
347 $(TAGS_FILES) $(LISP)
348 tags=; \
349 here=`pwd`; \
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
355 END { if (nonempty) { for (i in files) print i; }; }'`; \
356 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
357 test -n "$$unique" || unique=$$empty_fix; \
358 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
359 $$tags $$unique; \
360 fi
361ctags: CTAGS
362CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
363 $(TAGS_FILES) $(LISP)
364 tags=; \
365 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
366 unique=`for i in $$list; do \
367 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368 done | \
369 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
370 END { if (nonempty) { for (i in files) print i; }; }'`; \
371 test -z "$(CTAGS_ARGS)$$tags$$unique" \
372 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
373 $$tags $$unique
374
375GTAGS:
376 here=`$(am__cd) $(top_builddir) && pwd` \
377 && cd $(top_srcdir) \
378 && gtags -i $(GTAGS_ARGS) $$here
379
380distclean-tags:
381 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
382
383distdir: $(DISTFILES)
384 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 list='$(DISTFILES)'; \
387 dist_files=`for file in $$list; do echo $$file; done | \
388 sed -e "s|^$$srcdirstrip/||;t" \
389 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
390 case $$dist_files in \
391 */*) $(MKDIR_P) `echo "$$dist_files" | \
392 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
393 sort -u` ;; \
394 esac; \
395 for file in $$dist_files; do \
396 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
397 if test -d $$d/$$file; then \
398 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
399 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
400 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
401 fi; \
402 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
403 else \
404 test -f $(distdir)/$$file \
405 || cp -p $$d/$$file $(distdir)/$$file \
406 || exit 1; \
407 fi; \
408 done
409check-am: all-am
410check: check-am
411all-am: Makefile $(LTLIBRARIES)
412installdirs:
413 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
414 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
415 done
416install: install-am
417install-exec: install-exec-am
418install-data: install-data-am
419uninstall: uninstall-am
420
421install-am: all-am
422 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
423
424installcheck: installcheck-am
425install-strip:
426 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
427 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
428 `test -z '$(STRIP)' || \
429 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
430mostlyclean-generic:
431
432clean-generic:
433
434distclean-generic:
435 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
436
437maintainer-clean-generic:
438 @echo "This command is intended for maintainers to use"
439 @echo "it deletes files that may require special tools to rebuild."
440clean: clean-am
441
442clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
443 mostlyclean-am
444
445distclean: distclean-am
446 -rm -rf ./$(DEPDIR)
447 -rm -f Makefile
448distclean-am: clean-am distclean-compile distclean-generic \
449 distclean-tags
450
451dvi: dvi-am
452
453dvi-am:
454
455html: html-am
456
457info: info-am
458
459info-am:
460
461install-data-am: install-pluginimpLTLIBRARIES
462
463install-dvi: install-dvi-am
464
465install-exec-am:
466
467install-html: install-html-am
468
469install-info: install-info-am
470
471install-man:
472
473install-pdf: install-pdf-am
474
475install-ps: install-ps-am
476
477installcheck-am:
478
479maintainer-clean: maintainer-clean-am
480 -rm -rf ./$(DEPDIR)
481 -rm -f Makefile
482maintainer-clean-am: distclean-am maintainer-clean-generic
483
484mostlyclean: mostlyclean-am
485
486mostlyclean-am: mostlyclean-compile mostlyclean-generic \
487 mostlyclean-libtool
488
489pdf: pdf-am
490
491pdf-am:
492
493ps: ps-am
494
495ps-am:
496
497uninstall-am: uninstall-pluginimpLTLIBRARIES
498
499.MAKE: install-am install-strip
500
501.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
502 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
503 distclean-compile distclean-generic distclean-libtool \
504 distclean-tags distdir dvi dvi-am html html-am info info-am \
505 install install-am install-data install-data-am install-dvi \
506 install-dvi-am install-exec install-exec-am install-html \
507 install-html-am install-info install-info-am install-man \
508 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
509 install-ps install-ps-am install-strip installcheck \
510 installcheck-am installdirs maintainer-clean \
511 maintainer-clean-generic mostlyclean mostlyclean-compile \
512 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
513 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
514
515# Tell versions [3.59,3.63) of GNU make to not export all variables.
516# Otherwise a system limit (for SysV at least) may be exceeded.
517.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.am
new file mode 100644
index 0000000..125488f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.am
@@ -0,0 +1,26 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_3dm.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_3dm_la_SOURCES = imp_3dm.c imp_3dm.h \
22 imp_3dm_callbacks.h imp_3dm_callbacks.c \
23 imp_3dm_object.c imp_3dm_object.h \
24 imp_3dm_chunks.h imp_3dm_object_types.h imp_3dm_types.h
25imp_3dm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
26
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.in
new file mode 100644
index 0000000..5831e8b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.in
@@ -0,0 +1,517 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_3dm
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_3dm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3dm_la_OBJECTS = imp_3dm.lo imp_3dm_callbacks.lo \
59 imp_3dm_object.lo
60imp_3dm_la_OBJECTS = $(am_imp_3dm_la_OBJECTS)
61@EXPERIMENTAL_TRUE@am_imp_3dm_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_3dm_la_SOURCES)
75DIST_SOURCES = $(imp_3dm_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = @ACLOCAL@
80AMTAR = @AMTAR@
81AR = @AR@
82AS = @AS@
83AUTOCONF = @AUTOCONF@
84AUTOHEADER = @AUTOHEADER@
85AUTOMAKE = @AUTOMAKE@
86AWK = @AWK@
87CC = @CC@
88CCDEPMODE = @CCDEPMODE@
89CFLAGS = @CFLAGS@
90CPP = @CPP@
91CPPFLAGS = @CPPFLAGS@
92CXX = @CXX@
93CXXCPP = @CXXCPP@
94CXXDEPMODE = @CXXDEPMODE@
95CXXFLAGS = @CXXFLAGS@
96CYGPATH_W = @CYGPATH_W@
97DBG_CFLAGS = @DBG_CFLAGS@
98DEBUG = @DEBUG@
99DEFS = @DEFS@
100DEPDIR = @DEPDIR@
101DLLTOOL = @DLLTOOL@
102ECHO = @ECHO@
103ECHO_C = @ECHO_C@
104ECHO_N = @ECHO_N@
105ECHO_T = @ECHO_T@
106EGREP = @EGREP@
107EXEEXT = @EXEEXT@
108F77 = @F77@
109FFLAGS = @FFLAGS@
110GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
111GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
112GLIB_CFLAGS = @GLIB_CFLAGS@
113GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
114GLIB_LIBS = @GLIB_LIBS@
115GLIB_MKENUMS = @GLIB_MKENUMS@
116GOBJECT_QUERY = @GOBJECT_QUERY@
117GREP = @GREP@
118GTKDOC_CHECK = @GTKDOC_CHECK@
119GTK_CFLAGS = @GTK_CFLAGS@
120GTK_LIBS = @GTK_LIBS@
121HTML_DIR = @HTML_DIR@
122INSTALL = @INSTALL@
123INSTALL_DATA = @INSTALL_DATA@
124INSTALL_PROGRAM = @INSTALL_PROGRAM@
125INSTALL_SCRIPT = @INSTALL_SCRIPT@
126INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
127LDFLAGS = @LDFLAGS@
128LEX = @LEX@
129LEXLIB = @LEXLIB@
130LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
131LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
132LIBGSF_LIBS = @LIBGSF_LIBS@
133LIBOBJS = @LIBOBJS@
134LIBS = @LIBS@
135LIBTOOL = @LIBTOOL@ --quiet
136LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
137LIBXML2_LIBS = @LIBXML2_LIBS@
138LN_S = @LN_S@
139LTLIBOBJS = @LTLIBOBJS@
140LTVERSION = @LTVERSION@
141MAGIC_LIBS = @MAGIC_LIBS@
142MAKEINFO = @MAKEINFO@
143MATH_LIBS = @MATH_LIBS@
144MKDIR_P = @MKDIR_P@
145OBJDUMP = @OBJDUMP@
146OBJEXT = @OBJEXT@
147PACKAGE = @PACKAGE@
148PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
149PACKAGE_NAME = @PACKAGE_NAME@
150PACKAGE_STRING = @PACKAGE_STRING@
151PACKAGE_TARNAME = @PACKAGE_TARNAME@
152PACKAGE_VERSION = @PACKAGE_VERSION@
153PATH_SEPARATOR = @PATH_SEPARATOR@
154PKG_CONFIG = @PKG_CONFIG@
155PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
156RANLIB = @RANLIB@
157SET_MAKE = @SET_MAKE@
158SHELL = @SHELL@
159STRIP = @STRIP@
160VERSION = @VERSION@
161XML2_CONFIG = @XML2_CONFIG@
162XML_CPPFLAGS = @XML_CPPFLAGS@
163XML_LIBS = @XML_LIBS@
164Z_CFLAGS = @Z_CFLAGS@
165Z_LIBS = @Z_LIBS@
166abs_builddir = @abs_builddir@
167abs_srcdir = @abs_srcdir@
168abs_top_builddir = @abs_top_builddir@
169abs_top_srcdir = @abs_top_srcdir@
170ac_ct_CC = @ac_ct_CC@
171ac_ct_CXX = @ac_ct_CXX@
172ac_ct_F77 = @ac_ct_F77@
173am__include = @am__include@
174am__leading_dot = @am__leading_dot@
175am__quote = @am__quote@
176am__tar = @am__tar@
177am__untar = @am__untar@
178bindir = @bindir@
179build = @build@
180build_alias = @build_alias@
181build_cpu = @build_cpu@
182build_os = @build_os@
183build_vendor = @build_vendor@
184builddir = @builddir@
185datadir = @datadir@
186datarootdir = @datarootdir@
187docdir = @docdir@
188dvidir = @dvidir@
189exec_prefix = @exec_prefix@
190host = @host@
191host_alias = @host_alias@
192host_cpu = @host_cpu@
193host_os = @host_os@
194host_vendor = @host_vendor@
195htmldir = @htmldir@
196includedir = @includedir@
197infodir = @infodir@
198install_sh = @install_sh@
199libdir = @libdir@
200libexecdir = @libexecdir@
201localedir = @localedir@
202localstatedir = @localstatedir@
203mandir = @mandir@
204mkdir_p = @mkdir_p@
205oldincludedir = @oldincludedir@
206pdfdir = @pdfdir@
207prefix = @prefix@
208program_transform_name = @program_transform_name@
209psdir = @psdir@
210sbindir = @sbindir@
211sharedstatedir = @sharedstatedir@
212srcdir = @srcdir@
213sysconfdir = @sysconfdir@
214target_alias = @target_alias@
215top_builddir = @top_builddir@
216top_srcdir = @top_srcdir@
217pluginimpdir = $(pkglibdir)/plugins/import
218@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_3dm.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@
224
225INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_3dm_la_SOURCES = imp_3dm.c imp_3dm.h \
231 imp_3dm_callbacks.h imp_3dm_callbacks.c \
232 imp_3dm_object.c imp_3dm_object.h \
233 imp_3dm_chunks.h imp_3dm_object_types.h imp_3dm_types.h
234
235imp_3dm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_3dm.la: $(imp_3dm_la_OBJECTS) $(imp_3dm_la_DEPENDENCIES)
297 $(LINK) $(am_imp_3dm_la_rpath) $(imp_3dm_la_OBJECTS) $(imp_3dm_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dm.Plo@am__quote@
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dm_callbacks.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dm_object.Plo@am__quote@
308
309.c.o:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c $<
315
316.c.obj:
317@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
322
323.c.lo:
324@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
325@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
326@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
327@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
328@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
329
330mostlyclean-libtool:
331 -rm -f *.lo
332
333clean-libtool:
334 -rm -rf .libs _libs
335
336ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
337 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
338 unique=`for i in $$list; do \
339 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
340 done | \
341 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
342 END { if (nonempty) { for (i in files) print i; }; }'`; \
343 mkid -fID $$unique
344tags: TAGS
345
346TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
347 $(TAGS_FILES) $(LISP)
348 tags=; \
349 here=`pwd`; \
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
355 END { if (nonempty) { for (i in files) print i; }; }'`; \
356 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
357 test -n "$$unique" || unique=$$empty_fix; \
358 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
359 $$tags $$unique; \
360 fi
361ctags: CTAGS
362CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
363 $(TAGS_FILES) $(LISP)
364 tags=; \
365 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
366 unique=`for i in $$list; do \
367 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368 done | \
369 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
370 END { if (nonempty) { for (i in files) print i; }; }'`; \
371 test -z "$(CTAGS_ARGS)$$tags$$unique" \
372 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
373 $$tags $$unique
374
375GTAGS:
376 here=`$(am__cd) $(top_builddir) && pwd` \
377 && cd $(top_srcdir) \
378 && gtags -i $(GTAGS_ARGS) $$here
379
380distclean-tags:
381 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
382
383distdir: $(DISTFILES)
384 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 list='$(DISTFILES)'; \
387 dist_files=`for file in $$list; do echo $$file; done | \
388 sed -e "s|^$$srcdirstrip/||;t" \
389 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
390 case $$dist_files in \
391 */*) $(MKDIR_P) `echo "$$dist_files" | \
392 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
393 sort -u` ;; \
394 esac; \
395 for file in $$dist_files; do \
396 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
397 if test -d $$d/$$file; then \
398 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
399 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
400 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
401 fi; \
402 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
403 else \
404 test -f $(distdir)/$$file \
405 || cp -p $$d/$$file $(distdir)/$$file \
406 || exit 1; \
407 fi; \
408 done
409check-am: all-am
410check: check-am
411all-am: Makefile $(LTLIBRARIES)
412installdirs:
413 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
414 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
415 done
416install: install-am
417install-exec: install-exec-am
418install-data: install-data-am
419uninstall: uninstall-am
420
421install-am: all-am
422 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
423
424installcheck: installcheck-am
425install-strip:
426 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
427 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
428 `test -z '$(STRIP)' || \
429 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
430mostlyclean-generic:
431
432clean-generic:
433
434distclean-generic:
435 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
436
437maintainer-clean-generic:
438 @echo "This command is intended for maintainers to use"
439 @echo "it deletes files that may require special tools to rebuild."
440clean: clean-am
441
442clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
443 mostlyclean-am
444
445distclean: distclean-am
446 -rm -rf ./$(DEPDIR)
447 -rm -f Makefile
448distclean-am: clean-am distclean-compile distclean-generic \
449 distclean-tags
450
451dvi: dvi-am
452
453dvi-am:
454
455html: html-am
456
457info: info-am
458
459info-am:
460
461install-data-am: install-pluginimpLTLIBRARIES
462
463install-dvi: install-dvi-am
464
465install-exec-am:
466
467install-html: install-html-am
468
469install-info: install-info-am
470
471install-man:
472
473install-pdf: install-pdf-am
474
475install-ps: install-ps-am
476
477installcheck-am:
478
479maintainer-clean: maintainer-clean-am
480 -rm -rf ./$(DEPDIR)
481 -rm -f Makefile
482maintainer-clean-am: distclean-am maintainer-clean-generic
483
484mostlyclean: mostlyclean-am
485
486mostlyclean-am: mostlyclean-compile mostlyclean-generic \
487 mostlyclean-libtool
488
489pdf: pdf-am
490
491pdf-am:
492
493ps: ps-am
494
495ps-am:
496
497uninstall-am: uninstall-pluginimpLTLIBRARIES
498
499.MAKE: install-am install-strip
500
501.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
502 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
503 distclean-compile distclean-generic distclean-libtool \
504 distclean-tags distdir dvi dvi-am html html-am info info-am \
505 install install-am install-data install-data-am install-dvi \
506 install-dvi-am install-exec install-exec-am install-html \
507 install-html-am install-info install-info-am install-man \
508 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
509 install-ps install-ps-am install-strip installcheck \
510 installcheck-am installdirs maintainer-clean \
511 maintainer-clean-generic mostlyclean mostlyclean-compile \
512 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
513 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
514
515# Tell versions [3.59,3.63) of GNU make to not export all variables.
516# Otherwise a system limit (for SysV at least) may be exceeded.
517.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.c
new file mode 100644
index 0000000..6273fd3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.c
@@ -0,0 +1,169 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005 - 2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <ctype.h>
24#include <stdlib.h>
25#include <string.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29#include <g3d/debug.h>
30
31#include "imp_3dm.h"
32#include "imp_3dm_chunks.h"
33
34static gboolean tdm_read_container(TdmGlobal *global, gpointer object,
35 goffset nb, guint32 level);
36
37EAPI
38gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
39 G3DModel *model, gpointer user_data)
40{
41 TdmGlobal *global;
42 G3DFloat version;
43 gchar magic[33], *pver;
44 gboolean retval;
45 guint32 max_len;
46
47 memset(magic, '\0', 33);
48 g3d_stream_read(stream, magic, 32);
49 if(strncmp(magic, "3D Geometry File Format ", 24) != 0) {
50 g_warning("%s is not an OpenNURBS 3dm file", stream->uri);
51 return FALSE;
52 }
53 pver = magic + 24;
54 while(isspace(*pver))
55 pver ++;
56 version = strtod(pver, NULL);
57#if DEBUG > 0
58 g_debug("loading %s, version %.1f", stream->uri, version);
59#endif
60
61 global = g_new0(TdmGlobal, 1);
62 global->context = context;
63 global->stream = stream;
64 global->model = model;
65 max_len = g3d_stream_size(stream);
66 if(!max_len)
67 max_len = (guint32) -1;
68 retval = tdm_read_container(global, NULL, max_len - 32, 0);
69 g_free(global);
70
71 return retval;
72}
73
74EAPI
75gchar *plugin_description(void)
76{
77 return g_strdup("OpenNURBS models.");
78}
79
80EAPI
81gchar **plugin_extensions(void)
82{
83 return g_strsplit("3dm", ":", 0);
84}
85
86/*****************************************************************************/
87
88static TdmChunkInfo *tdm_get_chunk_info(guint32 tcode)
89{
90 gint32 i;
91
92 for(i = 0; tdm_chunks[i].tcode <= tcode; i ++)
93 if(tdm_chunks[i].tcode == tcode)
94 return &(tdm_chunks[i]);
95 return NULL;
96}
97
98static gboolean tdm_read_container(TdmGlobal *global, gpointer object,
99 goffset nb, guint32 level)
100{
101 TdmChunkInfo *chunkinfo;
102 TdmLocal *local;
103 guint32 tcode;
104 guint32 len;
105 goffset off;
106
107 while(TRUE) {
108 off = g3d_stream_tell(global->stream);
109 tcode = g3d_stream_read_int32_le(global->stream);
110 len = g3d_stream_read_int32_le(global->stream);
111 nb -= 8;
112 if(tcode == 0)
113 return TRUE;
114
115 /* mask out DATA and CRC */
116 chunkinfo = tdm_get_chunk_info(tcode & 0x7FFF7FFF);
117
118#if DEBUG > 0
119 g_debug("\\%s[0x%08x][%c%c%c] %s (%d bytes @ 0x%08x)",
120 debug_pad(level), tcode,
121 (chunkinfo && chunkinfo->container) ? 'c' : ' ',
122 (chunkinfo && chunkinfo->endofcnt) ? 'e' : ' ',
123 (chunkinfo && chunkinfo->callback) ? 'f' : ' ',
124 chunkinfo ? chunkinfo->description : "unknown chunk",
125 (tcode & TCODE_DATA) ? 0 : len,
126 (guint32)off);
127#endif
128 if(chunkinfo && chunkinfo->endofcnt)
129 return TRUE;
130
131#if DEBUG > 0
132 if(tcode & TCODE_DATA)
133 g_debug("|%sdata: 0x%08x", debug_pad(level + 1), len);
134#endif
135
136 if(chunkinfo) {
137 if(chunkinfo->callback) {
138 local = g_new0(TdmLocal, 1);
139 local->tcode = tcode;
140 local->len = (tcode & TCODE_DATA) ? 0 : len;
141 local->data = (tcode & TCODE_DATA) ? len : 0;
142 local->level = level;
143 local->object = object;
144 chunkinfo->callback(global, local);
145 len = local->len;
146 object = local->object;
147 g_free(local);
148 }
149 if(chunkinfo->container) {
150 if(!tdm_read_container(global, object, len, level + 1))
151 return FALSE;
152 nb -= len;
153 len = 0;
154 if(tcode & TCODE_CRC) {
155 g3d_stream_read_int32_le(global->stream);
156 nb -= 4;
157 }
158 }
159 }
160
161 if(tcode & TCODE_DATA)
162 continue;
163
164 if(len > 0)
165 g3d_stream_skip(global->stream, len);
166 }
167
168 return TRUE;
169}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.h
new file mode 100644
index 0000000..5239eb8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.h
@@ -0,0 +1,31 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DM_H
23#define _IMP_3DM_H
24
25#define TCODE_TABLE 0x10000000
26#define TCODE_DATA 0x80000000
27#define TCODE_CRC 0x00008000
28
29#define TCODE_ENDOFTABLE 0xFFFFFFFF
30
31#endif /* _IMP_3DM_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.c
new file mode 100644
index 0000000..8eba35a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.c
@@ -0,0 +1,278 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/config.h>
23
24#include <g3d/types.h>
25#include <g3d/debug.h>
26#include <g3d/stream.h>
27#include <g3d/vector.h>
28#include <g3d/material.h>
29
30#include "imp_3dm_types.h"
31#include "imp_3dm_callbacks.h"
32#include "imp_3dm_object.h"
33#include "imp_3dm_object_types.h"
34
35static TdmObjectTypeInfo *tdm_otype_get_info(guint32 code)
36{
37 gint32 i;
38
39 if(code == 0xFFFFFFFF)
40 return NULL;
41
42 for(i = 0; tdm_object_types[i].code <= code; i ++)
43 if(tdm_object_types[i].code == code)
44 return &(tdm_object_types[i]);
45 return NULL;
46}
47
48static gboolean tdm_read_chunk_version(TdmGlobal *global, TdmLocal *local)
49{
50 guint8 ver = g3d_stream_read_int8(global->stream);
51
52 if(!ver)
53 return FALSE;
54 local->len -= 1;
55 local->major_version = (ver >> 4) & 0x0F;
56 local->minor_version = ver & 0x0F;
57
58 return TRUE;
59}
60
61/* OpenNURBS class data */
62gboolean tdm_cb_0x00027ffc(TdmGlobal *global, TdmLocal *local)
63{
64 TdmObjectRecord *obj = local->object;
65 TdmObjectTypeInfo *tinfo;
66 G3DMaterial *material;
67
68 if(!obj) {
69 g_warning("tdm_cb_0x00027FFC: expecting object...");
70 return TRUE;
71 }
72
73 tinfo = tdm_otype_get_info(obj->otype);
74 if(!tinfo) {
75 g_warning("unknown object type 0x%08x", obj->otype);
76 return TRUE;
77 }
78
79 local->level ++;
80#if DEBUG > 0
81 g_debug("\\%so: [0x%08x][%c]: %s", debug_pad(local->level),
82 obj->otype,
83 tinfo->callback ? 'f' : ' ',
84 tinfo->description);
85#endif
86 obj->object = g_new0(G3DObject, 1);
87 obj->object->name = g_strdup_printf("%s object @ 0x%08x",
88 tinfo->description, (guint32)g3d_stream_tell(global->stream));
89 global->model->objects = g_slist_append(global->model->objects,
90 obj->object);
91
92 material = g3d_material_new();
93 material->name = g_strdup("(default material)");
94 obj->object->materials = g_slist_append(obj->object->materials, material);
95
96 if(tinfo->callback)
97 tinfo->callback(global, local);
98
99 return TRUE;
100}
101
102/* object record type */
103gboolean tdm_cb_0x02000071(TdmGlobal *global, TdmLocal *local)
104{
105 TdmObjectRecord *obj = local->object;
106
107 if(obj)
108 obj->otype = local->data;
109 return TRUE;
110}
111
112/* object record end */
113gboolean tdm_cb_0x0200007f(TdmGlobal *global, TdmLocal *local)
114{
115 TdmObjectRecord *obj = local->object;
116
117 if(obj) {
118 g_free(obj);
119 }
120 return TRUE;
121}
122
123/* object record */
124gboolean tdm_cb_0x20000070(TdmGlobal *global, TdmLocal *local)
125{
126 local->object = g_new0(TdmObjectRecord, 1);
127 return TRUE;
128}
129
130/* object: mesh */
131gboolean tdm_cb_o_0x00000020(TdmGlobal *global, TdmLocal *local)
132{
133 TdmObjectRecord *obj = local->object;
134 G3DFace *face;
135 gint32 i, j;
136 guint32 vcount, fcount, isize, csize, crc;
137 guint8 c;
138
139 if(!tdm_read_chunk_version(global, local))
140 return FALSE;
141 if((local->major_version != 3) && (local->major_version != 1))
142 return TRUE;
143
144 vcount = g3d_stream_read_int32_le(global->stream);
145 fcount = g3d_stream_read_int32_le(global->stream);
146 local->len -= 8;
147
148 /* packed tex domain */
149 g3d_stream_read_double_le(global->stream);
150 g3d_stream_read_double_le(global->stream);
151 g3d_stream_read_double_le(global->stream);
152 g3d_stream_read_double_le(global->stream);
153 local->len -= 32;
154 /* srf domain */
155 g3d_stream_read_double_le(global->stream);
156 g3d_stream_read_double_le(global->stream);
157 g3d_stream_read_double_le(global->stream);
158 g3d_stream_read_double_le(global->stream);
159 local->len -= 32;
160 /* srf scale */
161 g3d_stream_read_double_le(global->stream);
162 g3d_stream_read_double_le(global->stream);
163 local->len -= 16;
164 /* vbox */
165 g3d_stream_read_float_le(global->stream);
166 g3d_stream_read_float_le(global->stream);
167 g3d_stream_read_float_le(global->stream);
168 g3d_stream_read_float_le(global->stream);
169 g3d_stream_read_float_le(global->stream);
170 g3d_stream_read_float_le(global->stream);
171 local->len -= 24;
172 /* nbox */
173 g3d_stream_read_float_le(global->stream);
174 g3d_stream_read_float_le(global->stream);
175 g3d_stream_read_float_le(global->stream);
176 g3d_stream_read_float_le(global->stream);
177 g3d_stream_read_float_le(global->stream);
178 g3d_stream_read_float_le(global->stream);
179 local->len -= 24;
180 /* tbox */
181 g3d_stream_read_float_le(global->stream);
182 g3d_stream_read_float_le(global->stream);
183 g3d_stream_read_float_le(global->stream);
184 g3d_stream_read_float_le(global->stream);
185 local->len -= 16;
186 /* closed */
187 g3d_stream_read_int32_le(global->stream);
188 local->len -= 4;
189
190#if DEBUG > 0
191 g_debug("|%svcount = %u, fcount = %u", debug_pad(local->level),
192 vcount, fcount);
193#endif
194
195 /* mesh parameters */
196 c = g3d_stream_read_int8(global->stream);
197 local->len -= 1;
198 if(c) {
199 return TRUE;
200 /* TODO */
201 }
202
203 /* mesh curvature */
204 for(i = 0; i < 4; i ++) {
205 c = g3d_stream_read_int8(global->stream);
206 local->len -= 1;
207 if(c) {
208 return TRUE;
209 /* TODO */
210 }
211 }
212
213 /* face array */
214 isize = g3d_stream_read_int32_le(global->stream);
215 local->len -= 4;
216 for(i = 0; i < fcount; i ++) {
217 face = g_new0(G3DFace, 1);
218 face->material = g_slist_nth_data(obj->object->materials, 0);
219 face->vertex_count = 4;
220 face->vertex_indices = g_new0(guint32, 4);
221 for(j = 0; j < 4; j ++) {
222 switch(isize) {
223 case 1:
224 face->vertex_indices[j] =
225 g3d_stream_read_int8(global->stream);
226 local->len -= 1;
227 break;
228 case 2:
229 face->vertex_indices[j] =
230 g3d_stream_read_int16_le(global->stream);
231 local->len -= 2;
232 break;
233 case 4:
234 face->vertex_indices[j] =
235 g3d_stream_read_int32_le(global->stream);
236 local->len -= 4;
237 break;
238 default:
239 g_warning("unsupported isize: %d", isize);
240 return TRUE;
241 break;
242 } /* switch(isize) */
243 } /* j := 0..3 */
244
245 obj->object->faces = g_slist_prepend(obj->object->faces, face);
246#if DEBUG > 0
247 g_debug("|%s[face %04d] %u, %u, %u, %u", debug_pad(local->level), i,
248 face->vertex_indices[0], face->vertex_indices[1],
249 face->vertex_indices[2], face->vertex_indices[3]);
250#endif
251 } /* i := 0..fcount */
252
253 /* vertex stuff */
254 if(local->major_version == 1) {
255 /* TODO */
256 return TRUE;
257 }
258
259 if(vcount > 0) {
260 csize = g3d_stream_read_int32_le(global->stream);
261 local->len -= 4;
262
263 crc = g3d_stream_read_int32_le(global->stream);
264 local->len -= 4;
265
266 c = g3d_stream_read_int8(global->stream);
267 local->len -= 1;
268
269 obj->object->vertex_count = vcount;
270 obj->object->vertex_data = g3d_vector_new(3, vcount);
271 if(c)
272 tdm_object_read_vertex_data_compressed(global, local);
273 else
274 tdm_object_read_vertex_data_uncompressed(global, local);
275 } /* vcount > 0 */
276
277 return TRUE;
278}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.h
new file mode 100644
index 0000000..50ed6ef
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.h
@@ -0,0 +1,34 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DM_CALLBACKS_H
23#define _IMP_3DM_CALLBACKS_H
24
25#include "imp_3dm_types.h"
26
27gboolean tdm_cb_0x00027ffc(TdmGlobal *global, TdmLocal *local);
28gboolean tdm_cb_0x02000071(TdmGlobal *global, TdmLocal *local);
29gboolean tdm_cb_0x0200007f(TdmGlobal *global, TdmLocal *local);
30gboolean tdm_cb_0x20000070(TdmGlobal *global, TdmLocal *local);
31
32gboolean tdm_cb_o_0x00000020(TdmGlobal *global, TdmLocal *local);
33
34#endif /* _IMP_3DM_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_chunks.h
new file mode 100644
index 0000000..2ce0f79
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_chunks.h
@@ -0,0 +1,114 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DM_CHUNKS_H
23#define _IMP_3DM_CHUNKS_H
24
25#include "imp_3dm_callbacks.h"
26
27static TdmChunkInfo tdm_chunks[] = {
28 { 0x00000001, FALSE, FALSE, "comment block", NULL },
29 { 0x00007FFE, FALSE, TRUE, "end of file", NULL },
30 { 0x00007FFF, FALSE, TRUE, "end of file", NULL },
31
32 { 0x00027FF9, FALSE, FALSE, "ON class userdata header", NULL },
33 { 0x00027FFA, TRUE, FALSE, "OpenNURBS class", NULL },
34 { 0x00027FFB, FALSE, FALSE, "OpenNURBS class UUID", NULL },
35 { 0x00027FFC, FALSE, FALSE, "OpenNURBS class data", tdm_cb_0x00027ffc },
36 { 0x00027FFD, FALSE, FALSE, "OpenNURBS class userdata", NULL },
37 { 0x00027FFF, FALSE, TRUE, "OpenNURBS class end", NULL },
38
39 { 0x02000061, FALSE, FALSE, "light record attributes", NULL },
40 { 0x0200006F, FALSE, TRUE, "light record end", NULL },
41
42 { 0x02000071, FALSE, FALSE, "object record type", tdm_cb_0x02000071 },
43 { 0x02000072, FALSE, FALSE, "object record attributes", NULL },
44 { 0x0200007F, FALSE, TRUE, "object record end", tdm_cb_0x0200007f },
45
46 { 0x10000010, TRUE, FALSE, "material table", NULL },
47 { 0x10000011, TRUE, FALSE, "layer table", NULL },
48 { 0x10000012, TRUE, FALSE, "light table", NULL },
49 { 0x10000013, TRUE, FALSE, "object table", NULL },
50 { 0x10000014, TRUE, FALSE, "properties table", NULL },
51 { 0x10000015, TRUE, FALSE, "settings table", NULL },
52 { 0x10000016, TRUE, FALSE, "bitmap table", NULL },
53 { 0x10000017, TRUE, FALSE, "user table", NULL },
54 { 0x10000018, TRUE, FALSE, "group table", NULL },
55 { 0x10000019, TRUE, FALSE, "font table", NULL },
56 { 0x10000020, TRUE, FALSE, "dimension style table", NULL },
57 { 0x10000021, TRUE, FALSE, "instance definition table", NULL },
58 { 0x10000022, TRUE, FALSE, "hatch pattern table", NULL },
59 { 0x10000023, TRUE, FALSE, "linetype table", NULL },
60 { 0x10000024, TRUE, FALSE, "obsolete layer set table", NULL },
61 { 0x10000025, TRUE, FALSE, "texture mapping table", NULL },
62 { 0x10000026, TRUE, FALSE, "history record table", NULL },
63
64 { 0x20000021, FALSE, FALSE, "revision history", NULL },
65 { 0x20000022, FALSE, FALSE, "notes", NULL },
66 { 0x20000023, FALSE, FALSE, "preview image", NULL },
67 { 0x20000024, FALSE, FALSE, "application", NULL },
68 { 0x20000025, FALSE, FALSE, "compressed preview image", NULL },
69 { 0x20000026, FALSE, FALSE, "OpenNURBS version", NULL },
70
71 { 0x20000031, FALSE, FALSE, "units and tols", NULL },
72 { 0x20000032, FALSE, FALSE, "render mesh", NULL },
73 { 0x20000033, FALSE, FALSE, "analysis mesh", NULL },
74 { 0x20000034, FALSE, FALSE, "annotation", NULL },
75 { 0x20000035, FALSE, FALSE, "named cplane list", NULL },
76 { 0x20000036, FALSE, FALSE, "named view list", NULL },
77 { 0x20000037, FALSE, FALSE, "view list", NULL },
78 { 0x20000038, FALSE, FALSE, "current layer index", NULL },
79 { 0x20000039, FALSE, FALSE, "current material index", NULL },
80 { 0x2000003A, FALSE, FALSE, "current color", NULL },
81 { 0x2000003B, FALSE, FALSE, "view record", NULL },
82 { 0x2000003C, FALSE, FALSE, "current wire density", NULL },
83 { 0x2000003D, FALSE, FALSE, "render", NULL },
84 { 0x2000003E, FALSE, FALSE, "NEVER USE THIS", NULL },
85 { 0x2000003F, FALSE, FALSE, "grid defaults", NULL },
86 { 0x20000040, FALSE, FALSE, "material record", NULL },
87
88 { 0x20000050, FALSE, FALSE, "layer record", NULL },
89
90 { 0x20000060, TRUE, FALSE, "light record", NULL },
91
92 { 0x20000070, TRUE, FALSE, "object record", tdm_cb_0x20000070 },
93
94 { 0x20000073, FALSE, FALSE, "group record", NULL },
95 { 0x20000074, FALSE, FALSE, "font record", NULL },
96 { 0x20000075, FALSE, FALSE, "dimstyle record", NULL },
97 { 0x20000076, FALSE, FALSE, "instance definition record",NULL },
98 { 0x20000077, FALSE, FALSE, "hatch pattern record", NULL },
99 { 0x20000078, FALSE, FALSE, "linetype record", NULL },
100
101 { 0x20000080, FALSE, FALSE, "table id", NULL },
102 { 0x20000081, FALSE, FALSE, "user record", NULL },
103
104 { 0x20000131, FALSE, FALSE, "model url", NULL },
105 { 0x20000132, FALSE, FALSE, "current font index", NULL },
106 { 0x20000133, FALSE, FALSE, "current dimstyle index", NULL },
107 { 0x20000134, FALSE, FALSE, "attributes", NULL },
108 { 0x20000135, FALSE, FALSE, "plugin list", NULL },
109 { 0x2000013B, FALSE, FALSE, "cplane", NULL },
110
111 { 0x7FFF7FFF, FALSE, TRUE, "end of table", NULL },
112};
113
114#endif /* _IMP_3DM_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.c
new file mode 100644
index 0000000..0e280a8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.c
@@ -0,0 +1,80 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/config.h>
23
24#include <g3d/types.h>
25#include <g3d/stream.h>
26
27#include "imp_3dm_types.h"
28
29static guint32 tdm_object_read_vector_data(G3DStream *stream,
30 G3DVector *vertex_data, guint32 vsize, guint32 vcount)
31{
32 gsize nb = 0;
33 gint32 i, j;
34
35 for(i = 0; i < vcount; i ++)
36 for(j = 0; j < vsize; j ++) {
37 vertex_data[i * vsize + j] = g3d_stream_read_float_le(stream);
38 nb += 4;
39 }
40 return nb;
41}
42
43gboolean tdm_object_read_vertex_data_uncompressed(TdmGlobal *global,
44 TdmLocal *local)
45{
46 TdmObjectRecord *obj = local->object;
47
48 local->len -= tdm_object_read_vector_data(global->stream,
49 obj->object->vertex_data, 3, obj->object->vertex_count);
50 return TRUE;
51}
52
53gboolean tdm_object_read_vertex_data_compressed(TdmGlobal *global,
54 TdmLocal *local)
55{
56#if HAVE_ZLIB
57 TdmObjectRecord *obj = local->object;
58 G3DStream *zstream;
59 guint32 csize;
60
61 g3d_stream_read_int32_le(global->stream); /* tcode */
62 csize = g3d_stream_read_int32_le(global->stream) - 4; /* size */
63 local->len -= 8;
64
65 zstream = g3d_stream_zlib_inflate_stream(global->stream, csize);
66 if(zstream) {
67 tdm_object_read_vector_data(zstream,
68 obj->object->vertex_data, 3, obj->object->vertex_count);
69 local->len -= csize;
70 g3d_stream_close(zstream);
71 /* CRC */
72 g3d_stream_read_int32_le(global->stream);
73 local->len -= 4;
74 return TRUE;
75 };
76#else
77 g_warning("no zlib support, unable to read deflated data");
78#endif /* HAVE_ZLIB */
79 return FALSE;
80}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.h
new file mode 100644
index 0000000..3304c5f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.h
@@ -0,0 +1,32 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DM_OBJECT_H
23#define _IMP_3DM_OBJECT_H
24
25#include "imp_3dm_types.h"
26
27gboolean tdm_object_read_vertex_data_uncompressed(TdmGlobal *global,
28 TdmLocal *local);
29gboolean tdm_object_read_vertex_data_compressed(TdmGlobal *global,
30 TdmLocal *local);
31
32#endif /* _IMP_3DM_OBJECT_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object_types.h
new file mode 100644
index 0000000..d9574f3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object_types.h
@@ -0,0 +1,61 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DM_OBJECT_TYPES_H
23#define _IMP_3DM_OBJECT_TYPES_H
24
25#include "imp_3dm_callbacks.h"
26
27static TdmObjectTypeInfo tdm_object_types[] = {
28 { 0x00000000, "unknown object", NULL },
29 { 0x00000001, "point", NULL },
30 { 0x00000002, "point set", NULL },
31 { 0x00000004, "curve", NULL },
32 { 0x00000008, "surface", NULL },
33 { 0x00000010, "brep", NULL },
34 { 0x00000020, "mesh", tdm_cb_o_0x00000020 },
35 { 0x00000040, "layer", NULL },
36 { 0x00000080, "material", NULL },
37 { 0x00000100, "light", NULL },
38 { 0x00000200, "annotation", NULL },
39 { 0x00000400, "user data", NULL },
40 { 0x00000800, "instance definition", NULL },
41 { 0x00001000, "instance reference", NULL },
42 { 0x00002000, "text dot", NULL },
43 { 0x00004000, "grip", NULL },
44 { 0x00008000, "detail", NULL },
45 { 0x00010000, "hatch", NULL },
46 { 0x00020000, "morph control", NULL },
47 { 0x00080000, "loop", NULL },
48 { 0x00200000, "poly surface", NULL },
49 { 0x00400000, "edge filter", NULL },
50 { 0x00800000, "poly edge filter", NULL },
51 { 0x01000000, "mesh vertex", NULL },
52 { 0x02000000, "mesh edge", NULL },
53 { 0x04000000, "mesh face", NULL },
54 { 0x08000000, "cage", NULL },
55 { 0x10000000, "phantom", NULL },
56 { 0x20000000, "clip plane", NULL },
57
58 { 0xFFFFFFFF, "any object", NULL }
59};
60
61#endif /* _IMP_3DM_OBJECT_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h
new file mode 100644
index 0000000..1de1ce0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h
@@ -0,0 +1,64 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DM_TYPES_H
23#define _IMP_3DM_TYPES_H
24
25#include <g3d/types.h>
26
27typedef struct {
28 G3DContext *context;
29 G3DStream *stream;
30 G3DModel *model;
31} TdmGlobal;
32
33typedef struct {
34 guint32 tcode;
35 guint32 len;
36 guint32 data;
37 guint32 level;
38 guint16 major_version;
39 guint16 minor_version;
40 gpointer object;
41} TdmLocal;
42
43typedef gboolean (* TdmCallback)(TdmGlobal *, TdmLocal *);
44
45typedef struct {
46 guint32 tcode;
47 gboolean container;
48 gboolean endofcnt;
49 const gchar *description;
50 TdmCallback callback;
51} TdmChunkInfo;
52
53typedef struct {
54 guint32 code;
55 const gchar *description;
56 TdmCallback callback;
57} TdmObjectTypeInfo;
58
59typedef struct {
60 guint32 otype;
61 G3DObject *object;
62} TdmObjectRecord;
63
64#endif /* _IMP_3DM_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile
new file mode 100644
index 0000000..f8edad7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_3dmf/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15
16
17
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_3dmf
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_3dmf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3dmf_la_OBJECTS = imp_3dmf.lo imp_3dmf_callbacks.lo
59imp_3dmf_la_OBJECTS = $(am_imp_3dmf_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_3dmf_la_SOURCES)
73DIST_SOURCES = $(imp_3dmf_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_3dmf.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_3dmf_la_SOURCES = imp_3dmf.c imp_3dmf_chunks.h \
229 imp_3dmf_callbacks.c imp_3dmf_callbacks.h
230
231imp_3dmf_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_3dmf.la: $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301include ./$(DEPDIR)/imp_3dmf.Plo
302include ./$(DEPDIR)/imp_3dmf_callbacks.Plo
303
304.c.o:
305 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307# source='$<' object='$@' libtool=no \
308# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
309# $(COMPILE) -c $<
310
311.c.obj:
312 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314# source='$<' object='$@' libtool=no \
315# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
316# $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321# source='$<' object='$@' libtool=yes \
322# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
323# $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.am
new file mode 100644
index 0000000..a21a13a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.am
@@ -0,0 +1,21 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_3dmf.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_3dmf_la_SOURCES = imp_3dmf.c imp_3dmf_chunks.h \
20 imp_3dmf_callbacks.c imp_3dmf_callbacks.h
21imp_3dmf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.in
new file mode 100644
index 0000000..ac192df
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.in
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_3dmf
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_3dmf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3dmf_la_OBJECTS = imp_3dmf.lo imp_3dmf_callbacks.lo
59imp_3dmf_la_OBJECTS = $(am_imp_3dmf_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_3dmf_la_SOURCES)
73DIST_SOURCES = $(imp_3dmf_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_3dmf.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_3dmf_la_SOURCES = imp_3dmf.c imp_3dmf_chunks.h \
229 imp_3dmf_callbacks.c imp_3dmf_callbacks.h
230
231imp_3dmf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_3dmf.la: $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dmf.Plo@am__quote@
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dmf_callbacks.Plo@am__quote@
303
304.c.o:
305@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309@am__fastdepCC_FALSE@ $(COMPILE) -c $<
310
311.c.obj:
312@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf.c
new file mode 100644
index 0000000..82a46d3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf.c
@@ -0,0 +1,646 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24
25#include <g3d/types.h>
26#include <g3d/context.h>
27#include <g3d/stream.h>
28#include <g3d/object.h>
29#include <g3d/vector.h>
30#include <g3d/matrix.h>
31#include <g3d/material.h>
32#include <g3d/iff.h>
33#include <g3d/debug.h>
34
35#include "imp_3dmf_chunks.h"
36
37#define X3DMF_CHUNK_CHAR(id, shift) \
38 ((((id) >> (shift)) & 0xFF) == 0) ? \
39 ' ' : ((id) >> (shift)) & 0xFF
40
41typedef struct {
42 guint32 id;
43 guint32 offset;
44 guint32 type;
45}
46X3dmfTocEntry;
47
48typedef struct {
49 guint32 num_entries;
50 X3dmfTocEntry *entries;
51}
52X3dmfToc;
53
54
55static gboolean x3dmf_read_container(G3DStream *stream, guint32 length,
56 G3DModel *model, G3DObject *object, guint32 level, X3dmfToc *toc,
57 G3DContext *context);
58static X3dmfToc *x3dmf_read_toc(G3DStream *stream, X3dmfToc *prev_toc,
59 G3DContext *context);
60
61EAPI
62gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
63 G3DModel *model, gpointer user_data)
64{
65 guint32 id, flags, tocloc, pos;
66 gsize len;
67 guint16 ver_min, ver_maj;
68 gchar txthead[10];
69 X3dmfToc *toc = NULL;
70
71 g3d_iff_read_chunk(stream, &id, &len, 0);
72 if((id != G3D_IFF_MKID('3', 'D', 'M', 'F')) || (len != 16)) {
73 g3d_stream_seek(stream, 0, G_SEEK_SET);
74 g3d_stream_read(stream, txthead, 10);
75 if(strncmp(txthead, "3DMetafile", 10) == 0) {
76 g_warning("file %s is an ASCII 3D Metafile (unhandled)\n",
77 stream->uri);
78 } else {
79 g_warning("file %s is not a 3D Metafile\n", stream->uri);
80 }
81 return FALSE;
82 }
83
84 ver_maj = g3d_stream_read_int16_be(stream);
85 ver_min = g3d_stream_read_int16_be(stream);
86
87 flags = g3d_stream_read_int32_be(stream);
88
89 g3d_stream_skip(stream, 4); /* FIXME: 64bit file offsets */
90 tocloc = g3d_stream_read_int32_be(stream);
91
92 /* read TOC if available */
93 if(tocloc > 0) {
94 pos = g3d_stream_tell(stream);
95 g3d_stream_seek(stream, tocloc, G_SEEK_SET);
96 toc = x3dmf_read_toc(stream, NULL, context);
97 g3d_stream_seek(stream, pos, G_SEEK_SET);
98 }
99
100#if DEBUG > 0
101 g_debug("3DMF: version %d.%d (0x%08x) TOC @ 0x%08x",
102 ver_maj, ver_min, flags, tocloc);
103#endif
104
105 x3dmf_read_container(stream, (guint32) -1, model, NULL, 0, toc, context);
106
107 return TRUE;
108}
109
110EAPI
111gchar *plugin_description(void)
112{
113 return g_strdup("3D Metafiles.");
114}
115
116EAPI
117gchar **plugin_extensions(void)
118{
119 return g_strsplit("b3d:3mf:3dmf", ":", 0);
120}
121
122/******************************************************************************
123 * 3DMF specific
124 */
125
126static X3dmfChunkDesc *x3dmf_get_chunk_info(guint32 id)
127{
128 gint32 i;
129
130 for(i = 0; x3dmf_chunks[i].id != 0; i ++)
131 if(x3dmf_chunks[i].id == id)
132 return &(x3dmf_chunks[i]);
133 return NULL;
134}
135
136static X3dmfToc *x3dmf_read_toc(G3DStream *stream, X3dmfToc *prev_toc,
137 G3DContext *context)
138{
139 X3dmfToc *toc;
140 guint32 off_next_toc, typeseed, refseed, entrytype, entrysize, nentries;
141 guint32 noff, i;
142
143 if(prev_toc)
144 toc = prev_toc;
145 else
146 toc = g_new0(X3dmfToc, 1);
147
148 /* skip tag and size (FIXME) */
149 g3d_stream_skip(stream, 8);
150
151 g3d_stream_skip(stream, 4); /* FIXME: 64bit file offsets */
152 off_next_toc = g3d_stream_read_int32_be(stream);
153 typeseed = g3d_stream_read_int32_be(stream);
154 refseed = g3d_stream_read_int32_be(stream);
155 entrytype = g3d_stream_read_int32_be(stream);
156 entrysize = g3d_stream_read_int32_be(stream);
157 nentries = g3d_stream_read_int32_be(stream);
158
159 /* resize entry array */
160 noff = toc->num_entries;
161 toc->num_entries += nentries;
162 toc->entries = (X3dmfTocEntry *)g_realloc(toc->entries,
163 toc->num_entries * sizeof(X3dmfTocEntry));
164
165 /* read TOC entries */
166 for(i = 0; i < nentries; i ++) {
167 toc->entries[noff + i].id = g3d_stream_read_int32_be(stream);
168 g3d_stream_skip(stream, 4); /* FIXME: 64bit file offsets */
169 toc->entries[noff + i].offset = g3d_stream_read_int32_be(stream);
170
171 if((entrytype == 1) && (entrysize == 16)) {
172 toc->entries[noff + i].type = g3d_stream_read_int32_be(stream);
173 }
174#if DEBUG > 0
175 g_debug("3DMF: TOC: %06d @ 0x%08x",
176 toc->entries[noff + i].id,
177 toc->entries[noff + i].offset);
178#endif
179 }
180
181 /* read next toc */
182 if(off_next_toc > 0) {
183 g3d_stream_seek(stream, off_next_toc, SEEK_SET);
184 toc = x3dmf_read_toc(stream, toc, context);
185 }
186
187 return toc;
188}
189
190static guint32 x3dmf_read_mesh(G3DStream *stream, G3DObject *object,
191 G3DContext *context)
192{
193 guint32 i, j, nconts, nfaces, nbytes = 0, ncverts, offv;
194 G3DFace *face;
195
196 g_return_val_if_fail(object != NULL, FALSE);
197
198 offv = object->vertex_count;
199 object->vertex_count += g3d_stream_read_int32_be(stream);
200 object->vertex_data = g_realloc(object->vertex_data,
201 object->vertex_count * 3 * sizeof(G3DFloat));
202 nbytes += 4;
203
204 for(i = offv; i < object->vertex_count; i ++) {
205 for(j = 0; j < 3; j ++)
206 object->vertex_data[i * 3 + j] = g3d_stream_read_float_be(stream);
207 nbytes += 12;
208
209 g3d_context_update_interface(context);
210 }
211
212 nfaces = g3d_stream_read_int32_be(stream);
213 nconts = g3d_stream_read_int32_be(stream);
214 nbytes += 8;
215
216#if DEBUG > 0
217 g_debug("|%u verts, %u faces, %u conts", object->vertex_count,
218 nfaces, nconts);
219#endif
220
221 for(i = 0; i < nfaces; i ++) {
222 face = g_new0(G3DFace, 1);
223
224 face->vertex_count = g3d_stream_read_int32_be(stream);
225 nbytes += 4;
226 face->vertex_indices = g_new0(guint32, face->vertex_count);
227
228 for(j = 0; j < face->vertex_count; j ++) {
229 face->vertex_indices[j] = offv + g3d_stream_read_int32_be(stream);
230 nbytes += 4;
231 if(face->vertex_indices[j] >= object->vertex_count) {
232 g_warning("face index wrong: %u >= %u",
233 face->vertex_indices[j], object->vertex_count);
234 face->vertex_indices[j] = 0;
235 }
236 }
237
238#if DEBUG > 3
239 g_debug("|face %u: %u %u %u", i, face->vertex_indices[0],
240 face->vertex_indices[1], face->vertex_indices[2]);
241#endif
242
243 face->material = g_slist_nth_data(object->materials, 0);
244 object->faces = g_slist_prepend(object->faces, face);
245
246 g3d_context_update_interface(context);
247 }
248
249 /* contours */
250 for(i = 0; i < nconts; i ++) {
251 ncverts = g3d_stream_read_int32_be(stream);
252 nbytes += 4;
253 for(j = 0; j < ncverts; j ++) {
254 g3d_stream_read_int32_be(stream);
255 nbytes += 4;
256 }
257 }
258
259 return nbytes;
260}
261
262static G3DObject *x3dmf_object_new(G3DStream *stream, G3DModel *model)
263{
264 G3DObject *object;
265 G3DMaterial *material;
266
267 object = g_new0(G3DObject, 1);
268 material = g3d_material_new();
269
270 object->name = g_strdup_printf("container @ 0x%08x",
271 (guint32)g3d_stream_tell(stream) - 8);
272 model->objects = g_slist_append(model->objects, object);
273 object->materials = g_slist_append(object->materials, material);
274
275 return object;
276}
277
278static guint32 x3dmf_read_packed(G3DStream *stream, guint32 maxx,
279 guint32 *nread)
280{
281 if(maxx > 0xFFFE) {
282 if(nread)
283 (*nread) += 4;
284 return g3d_stream_read_int32_be(stream);
285 } else if(maxx > 0xFE) {
286 if(nread)
287 (*nread) += 2;
288 return g3d_stream_read_int16_be(stream);
289 } else {
290 if(nread)
291 (*nread) += 1;
292 return g3d_stream_read_int8(stream);
293 }
294}
295
296/*
297 [tmsh] - TriMesh
298 http://developer.apple.com/documentation/QuickTime/QD3D/qd3dmetafile.33.htm
299
300 Uns32 numTriangles
301 Uns32 numTriangleAttributeTypes
302 Uns32 numEdges
303 Uns32 numEdgeAttributeTypes
304 Uns32 numPoints
305 Uns32 numVertexAttributeTypes
306 TriMeshTriangleData triangles[numTriangles]
307 TriMeshEdgeData edges[numEdges]
308 Point3D points[numPoints]
309 BoundingBox bBox
310*/
311
312static guint32 x3dmf_read_tmsh(G3DStream *stream, G3DObject *object,
313 G3DContext *context)
314{
315 G3DFace *face;
316 guint32 nread = 0, nfaces, nverts, nedges;
317 gint32 i, j;
318
319 nfaces = g3d_stream_read_int32_be(stream); /* numTriangles */
320 nread += 4;
321
322 g3d_stream_read_int32_be(stream); /* numTriangleAttributeTypes */
323 nread += 4;
324
325 nedges = g3d_stream_read_int32_be(stream); /* numEdges */
326 nread += 4;
327
328 g3d_stream_read_int32_be(stream); /* numEdgeAttributeTypes */
329 nread += 4;
330
331 nverts = g3d_stream_read_int32_be(stream); /* numPoints */
332 nread += 4;
333
334 g3d_stream_read_int32_be(stream); /* numVertexAttributeTypes */
335 nread += 4;
336
337#if DEBUG > 3
338 g_debug("3DMF: [tmsh] %d faces, %d edges, %d vertices",
339 nfaces, nedges, nverts);
340#endif
341
342 /* triangles */
343 for(i = 0; i < nfaces; i ++) {
344 face = g_new0(G3DFace, 1);
345
346 face->vertex_count = 3;
347 face->vertex_indices = g_new0(guint32, 3);
348 for(j = 0; j < 3; j ++) {
349 face->vertex_indices[j] =
350 x3dmf_read_packed(stream, nfaces, &nread);
351 if(face->vertex_indices[j] >= nverts) {
352 g_warning("face index error: %u >= %u",
353 face->vertex_indices[j], nverts);
354 face->vertex_indices[j] = 0;
355 }
356 }
357
358#if DEBUG > 3
359 g_debug("face %u (packed): %u %u %u", i, face->vertex_indices[0],
360 face->vertex_indices[1], face->vertex_indices[2]);
361#endif
362
363 face->material = g_slist_nth_data(object->materials, 0);
364 object->faces = g_slist_prepend(object->faces, face);
365 }
366
367 /* edges */
368 for(i = 0; i < nedges; i ++) {
369 /* pointIndices */
370 x3dmf_read_packed(stream, nedges, &nread);
371 x3dmf_read_packed(stream, nedges, &nread);
372 /* triangleIndices */
373 x3dmf_read_packed(stream, nedges, &nread);
374 x3dmf_read_packed(stream, nedges, &nread);
375 }
376
377 /* points */
378 object->vertex_count = nverts;
379 object->vertex_data = g_new0(G3DFloat, 3 * nverts);
380 for(i = 0; i < nverts; i ++) {
381 object->vertex_data[i * 3 + 0] = g3d_stream_read_float_be(stream);
382 object->vertex_data[i * 3 + 1] = g3d_stream_read_float_be(stream);
383 object->vertex_data[i * 3 + 2] = g3d_stream_read_float_be(stream);
384 nread += 12;
385 }
386
387 /* bBox */
388 /* Point3D min */
389 g3d_stream_read_float_be(stream);
390 g3d_stream_read_float_be(stream);
391 g3d_stream_read_float_be(stream);
392 nread += 12;
393 /* Point3D max */
394 g3d_stream_read_float_be(stream);
395 g3d_stream_read_float_be(stream);
396 g3d_stream_read_float_be(stream);
397 nread += 12;
398 /* boolean isEmpty */
399 g3d_stream_read_int32_be(stream);
400 nread += 4;
401
402 return nread;
403}
404
405static gboolean x3dmf_read_rfrn(G3DStream *stream, G3DModel *model,
406 X3dmfToc *toc, G3DContext *context)
407{
408 G3DObject *object;
409 guint32 id, i, refid, savedoffset;
410 gsize len;
411 X3dmfTocEntry *tocentry = NULL;
412
413 refid = g3d_stream_read_int32_be(stream);
414 if(refid == 0) {
415 /* FIXME */
416 return FALSE;
417 }
418
419 if(toc == NULL) {
420 return FALSE;
421 }
422
423 /* find reference object */
424 for(i = 0; i < toc->num_entries; i ++)
425 if(toc->entries[i].id == refid)
426 tocentry = &(toc->entries[i]);
427
428 g_return_val_if_fail(tocentry != NULL, FALSE);
429
430 savedoffset = g3d_stream_tell(stream);
431 g3d_stream_seek(stream, tocentry->offset, G_SEEK_SET);
432
433 object = x3dmf_object_new(stream, model);
434
435 g3d_iff_read_chunk(stream, &id, &len, 0);
436 switch(id) {
437 case G3D_IFF_MKID('c', 't', 'n', 'r'):
438 x3dmf_read_container(stream, len, model, NULL, 0xFF, toc, context);
439 break;
440
441 default:
442 break;
443 }
444
445 g3d_stream_seek(stream, savedoffset, G_SEEK_SET);
446
447 return TRUE;
448}
449
450static gboolean x3dmf_read_container(G3DStream *stream, guint32 length,
451 G3DModel *model, G3DObject *object, guint32 level, X3dmfToc *toc,
452 G3DContext *context)
453{
454 G3DMaterial *material = NULL;
455 X3dmfChunkDesc *chunkdesc;
456 guint32 id, chk, i;
457 gsize len;
458 G3DFloat matrix[16];
459
460 g3d_matrix_identity(matrix);
461
462 while(length > 0) {
463 if(g3d_stream_eof(stream))
464 break;
465
466 g3d_iff_read_chunk(stream, &id, &len, 0);
467 length -= 8;
468
469 if(id == 0)
470 return FALSE;
471
472 chunkdesc = x3dmf_get_chunk_info(id);
473
474#if DEBUG > 0
475 g_debug("\\%s[%c%c%c%c]: %s (%d bytes)", debug_pad(level),
476 X3DMF_CHUNK_CHAR(id, 24), X3DMF_CHUNK_CHAR(id, 16),
477 X3DMF_CHUNK_CHAR(id, 8), X3DMF_CHUNK_CHAR(id, 0),
478 chunkdesc ? chunkdesc->description : "unknown chunk",
479 len);
480#endif
481 length -= len;
482
483 switch(id) {
484 case G3D_IFF_MKID('c', 'n', 't', 'r'):
485 /* container */
486#if DEBUG > 0
487 g_debug("|%snew container @ 0x%x (%d bytes)",
488 debug_pad(level - 1),
489 (guint32)g3d_stream_tell(stream) - 8, len);
490#endif
491 x3dmf_read_container(stream, len, model, object, level + 1,
492 toc, context);
493 break;
494
495 case G3D_IFF_MKID('k', 'd', 'i', 'f'):
496 /* diffuse color */
497 if(object) {
498#if DEBUG > 2
499 g_debug("3DMF: kdif: got object");
500#endif
501 material = g_slist_nth_data(object->materials, 0);
502 material->r = g3d_stream_read_float_be(stream);
503 material->g = g3d_stream_read_float_be(stream);
504 material->b = g3d_stream_read_float_be(stream);
505 } else {
506 g3d_stream_skip(stream, len);
507 }
508 break;
509
510 case G3D_IFF_MKID('k', 's', 'p', 'c'):
511 /* specular color */
512 if(object) {
513#if DEBUG > 2
514 g_debug("3DMF: kspc: got object");
515#endif
516 material = g_slist_nth_data(object->materials, 0);
517 material->specular[0] = g3d_stream_read_float_be(stream);
518 material->specular[1] = g3d_stream_read_float_be(stream);
519 material->specular[2] = g3d_stream_read_float_be(stream);
520 } else {
521 g3d_stream_skip(stream, len);
522 }
523 break;
524
525 case G3D_IFF_MKID('k', 'x', 'p', 'r'):
526 /* transparency color */
527 if(object) {
528 /* use average as alpha */
529 material = g_slist_nth_data(object->materials, 0);
530 material->a = 1.0 -
531 (g3d_stream_read_float_be(stream) +
532 g3d_stream_read_float_be(stream) +
533 g3d_stream_read_float_be(stream)) / 3.0;
534
535 if(material->a < 0.1)
536 material->a = 0.1;
537 } else {
538 g3d_stream_skip(stream, len);
539 }
540 break;
541
542 case G3D_IFF_MKID('m', 'e', 's', 'h'):
543 /* mesh */
544 if(object == NULL)
545 object = x3dmf_object_new(stream, model);
546 material = g_slist_nth_data(object->materials, 0);
547
548 chk = x3dmf_read_mesh(stream, object, context);
549 g3d_object_transform(object, matrix);
550 if(chk != len) {
551 g_warning("3DMF: mesh: wrong length (%u != %u)\n",
552 chk, (unsigned int) len);
553 return FALSE;
554 }
555 break;
556
557 case G3D_IFF_MKID('m', 't', 'r', 'x'):
558 /* matrix */
559 for(i = 0; i < 16; i ++)
560 matrix[i] = g3d_stream_read_float_be(stream);
561 if(object) {
562#if DEBUG > 2
563 g_debug("3DMF: mtrx: object is set");
564#endif
565 g3d_object_transform(object, matrix);
566 }
567#if DEBUG > 3
568 for(i = 0; i < 4; i ++)
569 g_debug("3DMF: mtrx: %+1.2f %+1.2f %+1.2f %+1.2f",
570 matrix[i * 4 + 0], matrix[i * 4 + 1],
571 matrix[i * 4 + 2], matrix[i * 4 + 3]);
572#endif
573 break;
574
575 case G3D_IFF_MKID('r', 'f', 'r', 'n'):
576 /* reference */
577 x3dmf_read_rfrn(stream, model, toc, context);
578 break;
579
580 case G3D_IFF_MKID('s', 'e', 't', ' '):
581 /* ??: skip this cntr chunk */
582 g3d_stream_skip(stream, length);
583 length = 0;
584 break;
585
586 case G3D_IFF_MKID('t', 'm', 's', 'h'):
587 /* triangle mesh */
588 if(object == NULL)
589 object = x3dmf_object_new(stream, model);
590 material = g_slist_nth_data(object->materials, 0);
591
592 chk = x3dmf_read_tmsh(stream, object, context);
593 g3d_object_transform(object, matrix);
594 if(chk != len) {
595#if DEBUG > 0
596 g_debug("3DMF: tmsh: offset %d bytes", len - chk);
597#endif
598 g3d_stream_skip(stream, len - chk);
599 }
600 break;
601
602 case G3D_IFF_MKID('t', 'r', 'n', 's'):
603 /* translate */
604 if(object) {
605 G3DFloat x,y,z;
606 G3DFloat matrix[16];
607
608 x = g3d_stream_read_float_be(stream);
609 y = g3d_stream_read_float_be(stream);
610 z = g3d_stream_read_float_be(stream);
611
612 g3d_matrix_identity(matrix);
613 g3d_matrix_translate(x, y, z, matrix);
614
615 g3d_object_transform(object, matrix);
616 } else {
617#if DEBUG > 0
618 g_warning("3DMF: [trns] no object");
619#endif
620 g3d_stream_skip(stream, 12);
621 }
622 break;
623
624 default:
625 if(chunkdesc) {
626 g3d_stream_skip(stream, len);
627 } else {
628#if DEBUG > 0
629 g_warning("3DMF: Container: unknown chunk '%c%c%c%c'/"
630 "0x%02X%02X%02X%02X @ 0x%08x "
631 "(%d bytes)",
632 X3DMF_CHUNK_CHAR(id, 24), X3DMF_CHUNK_CHAR(id, 16),
633 X3DMF_CHUNK_CHAR(id, 8), X3DMF_CHUNK_CHAR(id, 0),
634 X3DMF_CHUNK_CHAR(id, 24), X3DMF_CHUNK_CHAR(id, 16),
635 X3DMF_CHUNK_CHAR(id, 8), X3DMF_CHUNK_CHAR(id, 0),
636 (guint32)g3d_stream_tell(stream) - 8, len);
637#endif
638 g3d_stream_skip(stream, len);
639 }
640 break;
641 }
642 }
643
644 return TRUE;
645}
646
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.c
new file mode 100644
index 0000000..1c76249
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.c
@@ -0,0 +1,23 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include "imp_3dmf_callbacks.h"
23
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.h
new file mode 100644
index 0000000..5cb37a6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.h
@@ -0,0 +1,42 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DMF_CALLBACKS_H
23#define _IMP_3DMF_CALLBACKS_H
24
25#include <g3d/types.h>
26#include <g3d/stream.h>
27
28typedef struct {
29 G3DContext *context;
30 G3DStream *stream;
31} X3dmfGlobal;
32
33typedef struct {
34 guint32 id;
35 guint32 parentid;
36 guint32 level;
37 G3DObject *object;
38} X3dmfLocal;
39
40typedef gboolean (* X3dmfCallback)(X3dmfGlobal *global, X3dmfLocal *local);
41
42#endif /* _IMP_3DMF_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h
new file mode 100644
index 0000000..471a14c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h
@@ -0,0 +1,95 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_3DMF_CHUNKS_H
23#define _IMP_3DMF_CHUNKS_H
24
25#include <g3d/iff.h>
26#include "imp_3dmf_callbacks.h"
27
28typedef struct {
29 guint32 id;
30 const gchar *description;
31 X3dmfCallback callback;
32} X3dmfChunkDesc;
33
34#define ID G3D_IFF_MKID
35
36static X3dmfChunkDesc x3dmf_chunks[] = {
37 { ID('a', 'm', 'b', 'n'), "ambient light", NULL },
38 { ID('a', 't', 'a', 'r'), "(registered unknown)", NULL },
39 { ID('a', 't', 't', 'r'), "attribute set", NULL },
40 { ID('b', 'g', 'n', 'g'), "begin group", NULL },
41 { ID('c', 'a', 'm', 'b'), "ambient coefficient", NULL },
42 { ID('c', 'm', 'p', 'l'), "camera placement", NULL },
43 { ID('c', 'm', 'r', 'g'), "camera range", NULL },
44 { ID('c', 'm', 'v', 'p'), "camera viewport", NULL },
45 { ID('c', 'n', 't', 'r'), "container", NULL },
46 { ID('c', 's', 'g', 'e'), "(registered unknown)", NULL },
47 { ID('c', 's', 'p', 'c'), "specular control", NULL },
48 { ID('c', 't', 'w', 'n'), "interactive renderer", NULL },
49 { ID('d', 'b', 'b', 'p'), "(registered unknown)", NULL },
50 { ID('d', 'r', 'c', 't'), "directional light", NULL },
51 { ID('e', 'n', 'd', 'g'), "end group", NULL },
52 { ID('h', 'l', 's', 't'), "highlight state", NULL },
53 { ID('i', 'm', 'c', 'c'), "image clear color", NULL },
54 { ID('i', 'm', 'd', 'm'), "image dimensions", NULL },
55 { ID('k', 'd', 'i', 'f'), "diffuse color", NULL },
56 { ID('k', 's', 'p', 'c'), "specular color", NULL },
57 { ID('k', 'x', 'p', 'r'), "transparency color", NULL },
58 { ID('l', 'g', 'h', 't'), "light data", NULL },
59 { ID('m', 'e', 's', 'h'), "mesh", NULL },
60 { ID('m', 't', 'r', 'x'), "matrix", NULL },
61 { ID('n', 'r', 'm', 'l'), "normal", NULL },
62 { ID('p', 'n', 't', 'l'), "point light", NULL },
63 { ID('r', 'f', 'r', 'n'), "reference", NULL },
64 { ID('r', 'v', 'h', 'n'), "(registered unknown)", NULL },
65 { ID('r', 'v', 't', 'x'), "(registered unknown)", NULL },
66 { ID('s', 'e', 't', ' '), "set", NULL },
67 { ID('s', 't', 'r', 'c'), "C string", NULL },
68 { ID('t', 'm', 's', 'h'), "triangle mesh", NULL },
69 { ID('t', 'o', 'c', ' '), "tabe of contents", NULL },
70 { ID('t', 'r', 'n', 's'), "translation", NULL },
71 { ID('t', 'y', 'p', 'e'), "type definition", NULL },
72 { ID('v', 'a', 'n', 'a'), "view angle aspect cam", NULL },
73 { ID('v', 'a', 's', 'l'), "vertex attr set list", NULL },
74 { ID('v', 'n', 'i', 'd'), "(registered unknown)", NULL },
75 { ID('v', 'w', 'h', 'n'), "view hints", NULL },
76 { ID('v', 'w', 'p', 'l'), "view plane camera", NULL },
77
78 { ID(0xFF, 0xFF, 0xFF, 0xE5), "0xFFFFFFE5", NULL },
79 { ID(0xFF, 0xFF, 0xFF, 0xE7), "0xFFFFFFE7", NULL },
80 { ID(0xFF, 0xFF, 0xFF, 0xE9), "0xFFFFFFE9", NULL },
81 { ID(0xFF, 0xFF, 0xFF, 0xEA), "0xFFFFFFEA", NULL },
82 { ID(0xFF, 0xFF, 0xFF, 0xEB), "0xFFFFFFEB", NULL },
83 { ID(0xFF, 0xFF, 0xFF, 0xEC), "0xFFFFFFEC", NULL },
84 { ID(0xFF, 0xFF, 0xFF, 0xEF), "0xFFFFFFEF (EoC?)", NULL },
85 { ID(0xFF, 0xFF, 0xFF, 0xF1), "0xFFFFFFF1", NULL },
86 { ID(0xFF, 0xFF, 0xFF, 0xF4), "0xFFFFFFF4", NULL },
87 { ID(0xFF, 0xFF, 0xFF, 0xF6), "0xFFFFFFF6", NULL },
88 { ID(0xFF, 0xFF, 0xFF, 0xFD), "0xFFFFFFFD", NULL },
89
90 { 0, NULL, NULL }
91};
92
93#undef ID
94
95#endif /* _IMP_3DMF_CHUNKS_H */