mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0032999: Modeling Algorithms - New option in ShapeUpgrade_ShapeDivide algorithm: splitting into N parts, into N*M parts
1. Multiple changes in ShapeUpgrade_ShapeDivideArea, ShapeUpgrade_FaceDivide, ShapeUpgrade_FaceDivideArea, ShapeUpgrade_SplitSurface, ShapeUpgrade_SplitSurfaceArea: new methods NbParts and SetSplittingByNumber, changes in ShapeUpgrade_FaceDivideArea::Perform and ShapeUpgrade_SplitSurfaceArea::Compute concerning new modes of splitting. 2. New Draw command "DT_SplitByNumber" for testing new modes of splitting. 3. New subgroups "split_number" and "split_two_numbers" in the group of tests "heal" for testing new modes of splitting.
This commit is contained in:
@@ -23,4 +23,6 @@
|
||||
023 unify_same_domain
|
||||
024 same_parameter_locked
|
||||
025 update_tolerance_locked
|
||||
026 checkshape
|
||||
026 checkshape
|
||||
027 split_number
|
||||
028 split_two_numbers
|
8
tests/heal/split_number/A1
Normal file
8
tests/heal/split_number/A1
Normal file
@@ -0,0 +1,8 @@
|
||||
psphere a 10 0 90
|
||||
fit
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_1 10
|
||||
|
||||
checknbshapes result -t -face 10
|
||||
|
8
tests/heal/split_number/A2
Normal file
8
tests/heal/split_number/A2
Normal file
@@ -0,0 +1,8 @@
|
||||
psphere a 10 0 90
|
||||
fit
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_1 100
|
||||
|
||||
checknbshapes result -t -face 102
|
||||
|
10
tests/heal/split_number/A3
Normal file
10
tests/heal/split_number/A3
Normal file
@@ -0,0 +1,10 @@
|
||||
psphere a 10 0 90
|
||||
pcylinder cc 4 15
|
||||
ttranslate cc 0 -5 0
|
||||
bcut b a cc
|
||||
explode b f
|
||||
|
||||
DT_SplitByNumber result b_1 10
|
||||
|
||||
checknbshapes result -t -face 10
|
||||
|
10
tests/heal/split_number/A4
Normal file
10
tests/heal/split_number/A4
Normal file
@@ -0,0 +1,10 @@
|
||||
psphere a 10 0 90
|
||||
pcylinder cc 4 15
|
||||
ttranslate cc 0 -5 0
|
||||
bcut b a cc
|
||||
explode b f
|
||||
|
||||
DT_SplitByNumber result b_1 100
|
||||
|
||||
checknbshapes result -t -face 101
|
||||
|
8
tests/heal/split_number/A5
Normal file
8
tests/heal/split_number/A5
Normal file
@@ -0,0 +1,8 @@
|
||||
psphere a 10 0 90 90
|
||||
trotate a 0 0 0 0 0 1 -90
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_1 10
|
||||
|
||||
checknbshapes result -t -face 8
|
||||
|
8
tests/heal/split_number/A6
Normal file
8
tests/heal/split_number/A6
Normal file
@@ -0,0 +1,8 @@
|
||||
psphere a 10 0 90 90
|
||||
trotate a 0 0 0 0 0 1 -90
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_1 100
|
||||
|
||||
checknbshapes result -t -face 96
|
||||
|
8
tests/heal/split_number/A7
Normal file
8
tests/heal/split_number/A7
Normal file
@@ -0,0 +1,8 @@
|
||||
psphere a 10
|
||||
fit
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_1 10
|
||||
|
||||
checknbshapes result -t -face 10
|
||||
|
8
tests/heal/split_number/A8
Normal file
8
tests/heal/split_number/A8
Normal file
@@ -0,0 +1,8 @@
|
||||
psphere a 10
|
||||
fit
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_1 100
|
||||
|
||||
checknbshapes result -t -face 136
|
||||
|
7
tests/heal/split_number/B1
Normal file
7
tests/heal/split_number/B1
Normal file
@@ -0,0 +1,7 @@
|
||||
restore [locate_data_file HOMAG_004.brep] a
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_4 10
|
||||
|
||||
checknbshapes result -t -face 9
|
||||
|
7
tests/heal/split_number/B2
Normal file
7
tests/heal/split_number/B2
Normal file
@@ -0,0 +1,7 @@
|
||||
restore [locate_data_file HOMAG_004.brep] a
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_4 100
|
||||
|
||||
checknbshapes result -t -face 106
|
||||
|
12
tests/heal/split_number/B3
Normal file
12
tests/heal/split_number/B3
Normal file
@@ -0,0 +1,12 @@
|
||||
restore [locate_data_file HOMAG_004.brep] a
|
||||
explode a f
|
||||
pcylinder cc 60 30
|
||||
explode cc f
|
||||
ttranslate cc_1 100 100 0
|
||||
bcut b a_4 cc_1
|
||||
explode b
|
||||
|
||||
DT_SplitByNumber result b_1 10
|
||||
|
||||
checknbshapes result -t -face 15
|
||||
|
12
tests/heal/split_number/B4
Normal file
12
tests/heal/split_number/B4
Normal file
@@ -0,0 +1,12 @@
|
||||
restore [locate_data_file HOMAG_004.brep] a
|
||||
explode a f
|
||||
pcylinder cc 60 30
|
||||
explode cc f
|
||||
ttranslate cc_1 100 100 0
|
||||
bcut b a_4 cc_1
|
||||
explode b
|
||||
|
||||
DT_SplitByNumber result b_1 100
|
||||
|
||||
checknbshapes result -t -face 125
|
||||
|
12
tests/heal/split_number/B5
Normal file
12
tests/heal/split_number/B5
Normal file
@@ -0,0 +1,12 @@
|
||||
restore [locate_data_file HOMAG_004.brep] a
|
||||
explode a f
|
||||
pcylinder cc 5 30
|
||||
explode cc f
|
||||
ttranslate cc_1 100 100 0
|
||||
bcut b a_4 cc_1
|
||||
explode b
|
||||
|
||||
DT_SplitByNumber result b_1 10
|
||||
|
||||
checknbshapes result -t -face 9
|
||||
|
12
tests/heal/split_number/B6
Normal file
12
tests/heal/split_number/B6
Normal file
@@ -0,0 +1,12 @@
|
||||
restore [locate_data_file HOMAG_004.brep] a
|
||||
explode a f
|
||||
pcylinder cc 5 30
|
||||
explode cc f
|
||||
ttranslate cc_1 100 100 0
|
||||
bcut b a_4 cc_1
|
||||
explode b
|
||||
|
||||
DT_SplitByNumber result b_1 100
|
||||
|
||||
checknbshapes result -t -face 106
|
||||
|
7
tests/heal/split_number/C1
Normal file
7
tests/heal/split_number/C1
Normal file
@@ -0,0 +1,7 @@
|
||||
polyline a 0 0 0 10 0 0 2 5 0 0 0 0
|
||||
mkplane a a
|
||||
|
||||
DT_SplitByNumber result a 10
|
||||
|
||||
checknbshapes result -t -face 14
|
||||
|
7
tests/heal/split_number/C2
Normal file
7
tests/heal/split_number/C2
Normal file
@@ -0,0 +1,7 @@
|
||||
polyline a 0 0 0 10 0 0 2 5 0 0 0 0
|
||||
mkplane a a
|
||||
|
||||
DT_SplitByNumber result a 100
|
||||
|
||||
checknbshapes result -t -face 118
|
||||
|
13
tests/heal/split_number/D1
Normal file
13
tests/heal/split_number/D1
Normal file
@@ -0,0 +1,13 @@
|
||||
pcylinder a 10 50
|
||||
plane pp -20 0 10 1 0 0
|
||||
pcylinder b1 pp 3 40
|
||||
plane pp 0 -20 30 0 1 0
|
||||
pcylinder b2 pp 5 40
|
||||
bcut a a b1
|
||||
bcut a a b2
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_1 10
|
||||
|
||||
checknbshapes result -t -face 6
|
||||
|
13
tests/heal/split_number/D2
Normal file
13
tests/heal/split_number/D2
Normal file
@@ -0,0 +1,13 @@
|
||||
pcylinder a 10 50
|
||||
plane pp -20 0 10 1 0 0
|
||||
pcylinder b1 pp 3 40
|
||||
plane pp 0 -20 30 0 1 0
|
||||
pcylinder b2 pp 5 40
|
||||
bcut a a b1
|
||||
bcut a a b2
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_1 100
|
||||
|
||||
checknbshapes result -t -face 99
|
||||
|
1
tests/heal/split_number/end
Normal file
1
tests/heal/split_number/end
Normal file
@@ -0,0 +1 @@
|
||||
puts [checkshape result]
|
8
tests/heal/split_two_numbers/A1
Normal file
8
tests/heal/split_two_numbers/A1
Normal file
@@ -0,0 +1,8 @@
|
||||
psphere a 10 0 90
|
||||
fit
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_1 3 5
|
||||
|
||||
checknbshapes result -t -face 15
|
||||
|
8
tests/heal/split_two_numbers/A2
Normal file
8
tests/heal/split_two_numbers/A2
Normal file
@@ -0,0 +1,8 @@
|
||||
psphere a 10 0 90
|
||||
fit
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_1 1 5
|
||||
|
||||
checknbshapes result -t -face 5
|
||||
|
8
tests/heal/split_two_numbers/A3
Normal file
8
tests/heal/split_two_numbers/A3
Normal file
@@ -0,0 +1,8 @@
|
||||
psphere a 10 0 90
|
||||
fit
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_1 5 1
|
||||
|
||||
checknbshapes result -t -face 5
|
||||
|
10
tests/heal/split_two_numbers/A4
Normal file
10
tests/heal/split_two_numbers/A4
Normal file
@@ -0,0 +1,10 @@
|
||||
psphere a 10 0 90
|
||||
pcylinder cc 4 15
|
||||
ttranslate cc 0 -5 0
|
||||
bcut b a cc
|
||||
explode b f
|
||||
|
||||
DT_SplitByNumber result b_1 3 5
|
||||
|
||||
checknbshapes result -t -face 16
|
||||
|
7
tests/heal/split_two_numbers/B1
Normal file
7
tests/heal/split_two_numbers/B1
Normal file
@@ -0,0 +1,7 @@
|
||||
restore [locate_data_file HOMAG_004.brep] a
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_4 3 5
|
||||
|
||||
checknbshapes result -t -face 15
|
||||
|
7
tests/heal/split_two_numbers/B2
Normal file
7
tests/heal/split_two_numbers/B2
Normal file
@@ -0,0 +1,7 @@
|
||||
restore [locate_data_file HOMAG_004.brep] a
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_4 1 5
|
||||
|
||||
checknbshapes result -t -face 5
|
||||
|
7
tests/heal/split_two_numbers/B3
Normal file
7
tests/heal/split_two_numbers/B3
Normal file
@@ -0,0 +1,7 @@
|
||||
restore [locate_data_file HOMAG_004.brep] a
|
||||
explode a f
|
||||
|
||||
DT_SplitByNumber result a_4 5 1
|
||||
|
||||
checknbshapes result -t -face 5
|
||||
|
12
tests/heal/split_two_numbers/B4
Normal file
12
tests/heal/split_two_numbers/B4
Normal file
@@ -0,0 +1,12 @@
|
||||
restore [locate_data_file HOMAG_004.brep] a
|
||||
explode a f
|
||||
pcylinder cc 60 30
|
||||
explode cc f
|
||||
ttranslate cc_1 100 100 0
|
||||
bcut b a_4 cc_1
|
||||
explode b
|
||||
|
||||
DT_SplitByNumber result b_1 3 5
|
||||
|
||||
checknbshapes result -t -face 14
|
||||
|
1
tests/heal/split_two_numbers/end
Normal file
1
tests/heal/split_two_numbers/end
Normal file
@@ -0,0 +1 @@
|
||||
puts [checkshape result]
|
Reference in New Issue
Block a user