-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Visualization - Selection does not work for simple shape #182
Fixed direction calculation for Select3D_SensitiveCylinder created from Geom_CylindricalSurface
- Loading branch information
Showing
3 changed files
with
134 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
puts "============" | ||
puts "0033664: Visualization - Selection does not work for simple shape" | ||
puts "============" | ||
puts "" | ||
|
||
pload MODELING VISUALIZATION | ||
vclear | ||
vinit View1 | ||
|
||
restore [locate_data_file cylinder_surface.brep] b | ||
vdisplay -dispMode 1 b | ||
vfit | ||
vsensdis | ||
|
||
vselect 200 200 | ||
if {[vnbselected] != "1"} { | ||
puts "ERROR: wrong sensitive area" | ||
} | ||
|
||
vselect 0 0 | ||
vdump $::imagedir/${::casename}_cylinder.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
puts "============" | ||
puts "0033664: Visualization - Selection does not work for simple shape" | ||
puts "============" | ||
puts "" | ||
|
||
pload MODELING VISUALIZATION | ||
vclear | ||
vinit View1 | ||
|
||
pcone c1 50 100 100 | ||
ttranslate c1 100 0 100 | ||
explode c1 | ||
explode c1_1 | ||
|
||
pcone c2 100 50 100 | ||
ttranslate c2 -100 0 100 | ||
explode c2 | ||
explode c2_1 | ||
|
||
pcone c3 0 100 100 | ||
ttranslate c3 100 0 -100 | ||
explode c3 | ||
explode c3_1 | ||
|
||
pcone c4 100 0 100 | ||
ttranslate c4 -100 0 -100 | ||
explode c4 | ||
explode c4_1 | ||
|
||
vdisplay c1_1_1 c2_1_1 c3_1_1 c4_1_1 -dispmode 1 | ||
vsensdis | ||
|
||
vfront | ||
vfit | ||
|
||
vdump $::imagedir/${::casename}_cone.png |