Model.manualsplit_applypatterns#

Model.manualsplit_applypatterns(edge_split_count, triplets)#

Splits shell elements with specific patterns, and automatically splits attached 1Ds.

Parameters:
  • edge_split_count (int) –

    The number of split points on element edges. Valid values are ≥ 0.

    This is valid only for tria patterns 106, 107, and 108, and quad patterns 101, 102, 103, 104, and 105.

  • triplets (hwString) –

    Uniquely determines a split pattern to be applied on a given element. This is a space separated and quoted list of triplets, with each triplet consisting of 3 colon separated values "Ai:Bi:Ci". These values are:

    Ai - The element ID.

    Bi - The split pattern ID. Valid tria patterns are 32, 33, 68, 80, 81, 82, 83, 84, 88, 106, 107, 108. Valid quad patterns are 10, 13, 15, 17, 19, 59, 66, 72, 73, 77, 78, 79, 85, 86, 87, 89, 101, 102, 103, 104, 105.

    Ci - The shell element side ID. Valid values are [0, n] where n = element edge/sides count.

    The split patterns are following below:

    Pattern Name

    Pattern ID

    Image

    Quad0000

    10

    image1

    Quad0000

    85

    image2

    Quad0000

    86

    image3

    Quad0000

    89

    image4

    Quad1000

    17

    image5

    Quad1000

    59

    image6

    Quad1000

    87

    image7

    Quad1010

    15

    image8

    Quad1100

    13

    image9

    Quad1110

    66

    image10

    Quad1111

    19

    image11

    Quad2000

    72

    image12

    Quad2020

    77

    image13

    Quad2200

    73

    image14

    Quad2220

    79

    image15

    Quad2222

    78

    image16

    QuadN000

    101

    image17

    QuadN0N0

    103

    image18

    QuadNN00

    102

    image19

    QuadNNN0

    104

    image20

    QuadNNNN

    105

    image21

    Tria000

    68

    image22

    Tria000

    88

    image23

    Tria100

    32

    image24

    Tria110

    33

    image25

    Tria111

    80

    image26

    Tria111

    81

    image27

    Tria200

    82

    image28

    Tria220

    83

    image29

    Tria222

    84

    image30

    TriaN00

    106

    image31

    TriaNN0

    107

    image32

    TriaNNN

    108

    image33

Examples#

Split element with ID 100 with 4 edge splits, using pattern 106 and side 2#
import hm
import hm.entities as ent

model = hm.Model()

model.manualsplit_applypatterns(edge_split_count=4, triplets="100:106:2")
Split multiple elements with 1 edge split, using different patterns and sides#
import hm
import hm.entities as ent

model = hm.Model()

model.manualsplit_applypatterns(edge_split_count=1, triplets="4:17:1 14:89:0 47:86:0 61:17:3")