Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds .Merge() method to combine model structs #12

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions datafiles/text_A.mtl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Blender 4.0.2 MTL File: 'merge.blend'
# www.blender.org

newmtl Material.001
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd text_A.png
82 changes: 82 additions & 0 deletions datafiles/text_A.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Blender 4.0.2
# www.blender.org
mtllib text_A.mtl
g text_A_text_A
v -0.367016 0.423455 -0.000000
v -0.436016 0.423455 -0.000000
v -0.729016 -0.262545 0.000000
v -0.629016 -0.262545 0.000000
v -0.543016 -0.061545 0.000000
v -0.253016 -0.061545 0.000000
v -0.162015 -0.262545 0.000000
v -0.062015 -0.262545 0.000000
v -0.403016 0.273455 -0.000000
v -0.293016 0.026455 -0.000000
v -0.505015 0.026455 -0.000000
v -0.367016 0.423455 0.062500
v -0.436016 0.423455 0.062500
v -0.729016 -0.262545 0.062500
v -0.629016 -0.262545 0.062500
v -0.543016 -0.061545 0.062500
v -0.253016 -0.061545 0.062500
v -0.162015 -0.262545 0.062500
v -0.062015 -0.262545 0.062500
v -0.403016 0.273455 0.062500
v -0.293016 0.026455 0.062500
v -0.505015 0.026455 0.062500
vn -0.0000 -0.0000 -1.0000
vn -0.0000 -0.0000 1.0000
vn 0.9194 -0.3934 -0.0000
vn -0.0000 -1.0000 -0.0000
vn 0.9138 0.4063 -0.0000
vn 0.9243 -0.3817 -0.0000
vn -0.0000 1.0000 -0.0000
vn -0.9196 0.3928 -0.0000
vn -0.9135 -0.4068 -0.0000
vn -0.9110 -0.4124 -0.0000
vt 0.200000 0.000000
vt 0.100000 0.000000
vt 0.000000 0.000000
vt 0.800000 0.000000
vt 0.700000 0.000000
vt 1.000000 0.000000
vt 0.900000 0.000000
vt 0.400000 0.000000
vt 0.500000 0.000000
vt 0.300000 0.000000
vt 0.600000 0.000000
s 0
usemtl Material.001
f 3/1/1 2/2/1 1/3/1
f 3/1/1 1/3/1 9/4/1
f 9/4/1 1/3/1 8/5/1
f 3/1/1 9/4/1 11/6/1
f 10/7/1 9/4/1 8/5/1
f 3/1/1 11/6/1 5/8/1
f 5/8/1 11/6/1 10/7/1
f 5/8/1 10/7/1 6/9/1
f 6/9/1 10/7/1 8/5/1
f 3/1/1 5/8/1 4/10/1
f 7/11/1 6/9/1 8/5/1
f 14/1/2 12/3/2 13/2/2
f 14/1/2 20/4/2 12/3/2
f 20/4/2 19/5/2 12/3/2
f 14/1/2 22/6/2 20/4/2
f 21/7/2 19/5/2 20/4/2
f 14/1/2 16/8/2 22/6/2
f 16/8/2 21/7/2 22/6/2
f 16/8/2 17/9/2 21/7/2
f 17/9/2 19/5/2 21/7/2
f 14/1/2 15/10/2 16/8/2
f 18/11/2 19/5/2 17/9/2
f 4/10/3 5/8/3 16/8/3 15/10/3
f 3/1/4 4/10/4 15/10/4 14/1/4
f 8/5/5 1/3/5 12/3/5 19/5/5
f 11/6/6 9/4/6 20/4/6 22/6/6
f 1/3/7 2/2/7 13/2/7 12/3/7
f 7/11/4 8/5/4 19/5/4 18/11/4
f 10/7/7 11/6/7 22/6/7 21/7/7
f 5/8/4 6/9/4 17/9/4 16/8/4
f 2/2/8 3/1/8 14/1/8 13/2/8
f 9/4/9 10/7/9 21/7/9 20/4/9
f 6/9/10 7/11/10 18/11/10 17/9/10
Binary file added datafiles/text_A.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions datafiles/text_B.mtl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Blender 4.0.2 MTL File: 'merge.blend'
# www.blender.org

newmtl Material.002
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd text_B.png
Loading