1
0
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:
jgv
2022-04-30 23:05:07 +03:00
committed by smoskvin
parent ec2d883e53
commit 07e803dee1
45 changed files with 539 additions and 49 deletions

View File

@@ -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

View 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

View 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

View 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

View 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

View 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

View 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

View File

@@ -0,0 +1,8 @@
psphere a 10
fit
explode a f
DT_SplitByNumber result a_1 10
checknbshapes result -t -face 10

View File

@@ -0,0 +1,8 @@
psphere a 10
fit
explode a f
DT_SplitByNumber result a_1 100
checknbshapes result -t -face 136

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View File

@@ -0,0 +1 @@
puts [checkshape result]

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View File

@@ -0,0 +1 @@
puts [checkshape result]