Skip to content

Commit 6e848e9

Browse files
committed
[IGNORE] Mesh Slice Docs
1 parent d72b38f commit 6e848e9

File tree

10 files changed

+415
-31
lines changed

10 files changed

+415
-31
lines changed

Help/icons/mesh_slicer.svg

Lines changed: 307 additions & 0 deletions
Loading

Help/images/mesh_slicer.png

74.3 KB
Loading
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
= GameDev Mesh Slice =
2+
3+
#type: node
4+
#context: sop
5+
#internal: gamedev::sop_mesh_slice
6+
#icon: mesh_slicer
7+
#tags: tech, model, gamedev
8+
9+
""" Clips the geometry into multiple submeshes based on a 3d grid pattern """
10+
11+
This node will slice up your mesh into several subcomponents based on a 3D grid defined by its bounding box
12+
13+
This is a combination of the Multi Bounding Box node and a Box Clip node working in conjunction to let you generate submeshes from one large mesh.
14+
15+
The most common use case is a large photogrammetry asset or point cloud that you might need chunked up into smaller meshes, either for streaming or for drawing/processing optimizations
16+
17+
[Image:/images/mesh_slicer.png]
18+
19+
@parameters
20+
Divisions:
21+
Number of XYZ Divisions for the 3d Grid
22+
Fill Holes:
23+
Toggle to enable capping the clipped faces.
24+
Isolate Index:
25+
Isolate a single sub component (Helpful if you'd like to use a ROP to drive this node and split out the mesh with the $F expression)
26+
Visualize Pieces:
27+
Applies a random Color to each of the pieces in order to quickly visualize how the mesh is split
28+

otls/sop_mesh_slice.hda/INDEX__SECTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Inputs: 1 to 1
1010
Subnet: true
1111
Python: false
1212
Empty: false
13-
Modified: Wed Mar 13 16:14:25 2019
13+
Modified: Tue Oct 22 15:55:59 2019
1414

Binary file not shown.

otls/sop_mesh_slice.hda/gamedev_8_8Sop_1sop__mesh__slice/Contents.dir/Contents.mime

Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,25 @@ Content-Type: text/plain
3232

3333
sopflags sopflags =
3434
comment ""
35-
position 0.515574 -4.31781
36-
connectornextid 0
35+
position -8.02353 -2.25882
36+
connectornextid 2
3737
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on
3838
outputsNamed3
3939
{
40+
1 "output1"
4041
}
4142
inputsNamed3
4243
{
44+
0 sop_axis_align1 1 1 "input1"
4345
}
4446
inputs
4547
{
48+
0 sop_axis_align1 0 1
4649
}
4750
stat
4851
{
49-
create 1552508046
50-
modify 1552508057
52+
create 1571772996
53+
modify 1571773188
5154
author MAINGEAR@DESKTOP-P98C1VA
5255
access 0777
5356
}
@@ -107,7 +110,7 @@ inputs
107110
stat
108111
{
109112
create 1552499573
110-
modify 1552500579
113+
modify 1571773060
111114
author MAINGEAR@DESKTOP-P98C1VA
112115
access 0777
113116
}
@@ -355,7 +358,7 @@ sopflags sopflags =
355358
comment ""
356359
position -0.474304 1.41341
357360
connectornextid 3
358-
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on
361+
flags = lock off model off template off footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault on exposed on
359362
outputsNamed3
360363
{
361364
2 "output1"
@@ -373,7 +376,7 @@ inputs
373376
stat
374377
{
375378
create 1552499122
376-
modify 1552500652
379+
modify 1571773246
377380
author MAINGEAR@DESKTOP-P98C1VA
378381
access 0777
379382
}
@@ -382,6 +385,20 @@ delscript ""
382385
exprlanguage hscript
383386
end
384387

388+
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
389+
Content-Disposition: attachment; filename="hdaroot/sop_box_clip1.chn"
390+
Content-Type: text/plain
391+
392+
{
393+
channel cap {
394+
lefttype = extend
395+
righttype = extend
396+
default = 1
397+
flags = 0
398+
segment { length = 0 value = 1 1 expr = ch(\"../cap\") }
399+
}
400+
}
401+
385402
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
386403
Content-Disposition: attachment; filename="hdaroot/sop_box_clip1.parm"
387404
Content-Type: text/plain
@@ -398,7 +415,7 @@ neg_y [ 0 locks=0 ] ( "on" )
398415
pos_y [ 0 locks=0 ] ( "on" )
399416
neg_z [ 0 locks=0 ] ( "on" )
400417
pos_z [ 0 locks=0 ] ( "on" )
401-
cap [ 0 locks=0 ] ( "off" )
418+
cap [ 0 locks=0 ] ( [ cap 1 ] )
402419
}
403420

404421
--HOUDINIMIMEBOUNDARY0xD3ADD339-0x00000F49-0x56B122C9-0x00000001HOUDINIMIMEBOUNDARY
@@ -474,7 +491,7 @@ Content-Type: text/plain
474491
{
475492
"___Version___":{
476493
"type":"string",
477-
"value":"17.0.487"
494+
"value":"17.5.360"
478495
}
479496
}
480497

@@ -493,7 +510,7 @@ sopflags sopflags =
493510
comment ""
494511
position 1.1296 -1.0323
495512
connectornextid 2
496-
flags = lock off model off template off footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault off exposed on
513+
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault off exposed on
497514
outputsNamed3
498515
{
499516
1 "output1"
@@ -509,7 +526,7 @@ inputs
509526
stat
510527
{
511528
create 1552499330
512-
modify 1552500579
529+
modify 1571773201
513530
author MAINGEAR@DESKTOP-P98C1VA
514531
access 0777
515532
}
@@ -550,7 +567,7 @@ Content-Type: text/plain
550567
{
551568
"___Version___":{
552569
"type":"string",
553-
"value":"17.0.487"
570+
"value":"17.5.360"
554571
}
555572
}
556573

@@ -585,7 +602,7 @@ inputs
585602
stat
586603
{
587604
create 1552499330
588-
modify 1552501520
605+
modify 1571773233
589606
author MAINGEAR@DESKTOP-P98C1VA
590607
access 0777
591608
}
@@ -614,7 +631,7 @@ Content-Type: text/plain
614631
{
615632
"___Version___":{
616633
"type":"string",
617-
"value":"17.0.487"
634+
"value":"17.5.360"
618635
}
619636
}
620637

@@ -647,7 +664,7 @@ inputs
647664
stat
648665
{
649666
create 1552499586
650-
modify 1552501520
667+
modify 1571773233
651668
author MAINGEAR@DESKTOP-P98C1VA
652669
access 0777
653670
}
@@ -676,7 +693,7 @@ Content-Type: text/plain
676693
{
677694
"___Version___":{
678695
"type":"string",
679-
"value":"17.0.487"
696+
"value":"17.5.360"
680697
}
681698
}
682699

@@ -710,7 +727,7 @@ inputs
710727
stat
711728
{
712729
create 1552501201
713-
modify 1552501259
730+
modify 1571773060
714731
author MAINGEAR@DESKTOP-P98C1VA
715732
access 0777
716733
}
@@ -735,7 +752,7 @@ Content-Type: text/plain
735752
{
736753
"___Version___":{
737754
"type":"string",
738-
"value":"17.0.487"
755+
"value":"17.5.360"
739756
},
740757
"nodeshape":{
741758
"type":"string",
@@ -776,7 +793,7 @@ inputs
776793
stat
777794
{
778795
create 1552501240
779-
modify 1552501259
796+
modify 1571773060
780797
author MAINGEAR@DESKTOP-P98C1VA
781798
access 0777
782799
}
@@ -814,7 +831,7 @@ Content-Type: text/plain
814831
{
815832
"___Version___":{
816833
"type":"string",
817-
"value":"17.0.487"
834+
"value":"17.5.360"
818835
}
819836
}
820837

otls/sop_mesh_slice.hda/gamedev_8_8Sop_1sop__mesh__slice/DialogScript

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,19 @@
2323
range { 1! 10 }
2424
parmtag { "autoscope" "0000000000000000" }
2525
}
26+
parm {
27+
name "cap"
28+
label "Fill Holes"
29+
type toggle
30+
default { [ "on" hscript-expr ] }
31+
help "Toggle to enable capping the clipped faces."
32+
parmtag { "autoscope" "0000000000000000" }
33+
}
2634
parm {
2735
name "isolate_index"
2836
label "Isolate Index"
2937
type toggle
30-
default { "off" }
38+
default { [ "off" hscript-expr ] }
3139
parmtag { "autoscope" "0000000000000000" }
3240
}
3341
parm {

otls/sop_mesh_slice.hda/gamedev_8_8Sop_1sop__mesh__slice/ExtraFileOptions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"OnCreated/Cursor":{
33
"type":"intarray",
4-
"value":[8,9]
4+
"value":[1,1]
55
},
66
"OnCreated/IsExpr":{
77
"type":"bool",
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
= GameDev Mesh Slice =
2+
3+
#type: node
4+
#context: sop
5+
#internal: gamedev::sop_mesh_slice
6+
#icon:
7+
#tags: tech, model
8+
9+
""" [Basic Description] """
10+
11+
[ Detailed description]
12+
13+
@parameters
14+
Divisions:
15+
[Needs parameter tooltip]
16+
Fill Holes:
17+
Toggle to enable capping the clipped faces.
18+
Isolate Index:
19+
[Needs parameter tooltip]
20+
Index:
21+
[Needs parameter tooltip]
22+
Visualize Pieces:
23+
[Needs parameter tooltip]
24+
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
SaveSpareParms := 0;
21
CheckExternal := 1;
3-
SaveIcon := 1;
4-
GzipContents := 1;
52
ContentsCompressionType := 1;
6-
UnlockOnCreate := 0;
7-
SaveCachedCode := 0;
3+
ForbidOutsideParms := 1;
4+
GzipContents := 1;
85
LockContents := 1;
96
MakeDefault := 1;
10-
UseDSParms := 1;
11-
ForbidOutsideParms := 1;
7+
ParmsFromVfl := 0;
128
PrefixDroppedParmLabel := 0;
139
PrefixDroppedParmName := 0;
14-
ParmsFromVfl := 0;
10+
SaveCachedCode := 0;
11+
SaveIcon := 1;
12+
SaveSpareParms := 0;
13+
UnlockOnCreate := 0;
14+
UseDSParms := 1;

0 commit comments

Comments
 (0)