mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0026697: BRepFeat_MakePrism returns empty compound
Add fix in direction of prism calculation
This commit is contained in:
parent
b56df3a60a
commit
df69c26472
@ -987,8 +987,8 @@ Standard_Integer SensOfPrism(const Handle(Geom_Curve) C,
|
|||||||
ASI1.Perform(scur);
|
ASI1.Perform(scur);
|
||||||
Standard_Integer sens = 1;
|
Standard_Integer sens = 1;
|
||||||
if(ASI1.IsDone() && ASI1.NbPoints(1) >= 1) {
|
if(ASI1.IsDone() && ASI1.NbPoints(1) >= 1) {
|
||||||
if(ASI1.Point(1, 1).Parameter() < 0. &&
|
if(ASI1.Point(1, 1).Parameter() + Precision::Confusion() < 0. &&
|
||||||
ASI1.Point(1, ASI1.NbPoints(1)).Parameter() < 0.) {
|
ASI1.Point(1, ASI1.NbPoints(1)).Parameter() + Precision::Confusion() < 0.) {
|
||||||
sens = -1;
|
sens = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,20 +1,15 @@
|
|||||||
puts "TODO CR26697 ALL: Error : is WRONG because number of SHAPE entities"
|
|
||||||
|
|
||||||
puts "================"
|
puts "================"
|
||||||
puts "CR26697"
|
puts "bug26697: BRepFeat_MakePrism returns empty compound"
|
||||||
puts "================"
|
puts "================"
|
||||||
puts ""
|
puts ""
|
||||||
###############################################
|
|
||||||
## BRepFeat_MakePrism returns empty compound
|
|
||||||
###############################################
|
|
||||||
|
|
||||||
restore [locate_data_file bug26697_aBase.brep] aB
|
restore [locate_data_file bug26697_aBase.brep] aB
|
||||||
restore [locate_data_file bug26697_aFrom.brep] aF
|
restore [locate_data_file bug26697_aFrom.brep] aF
|
||||||
restore [locate_data_file bug26697_aTo.brep] aT
|
restore [locate_data_file bug26697_aTo.brep] aT
|
||||||
|
|
||||||
featprism aB aB aB 0 -1 0 2 1
|
featprism aB aB aB 0 -1 0 2 1
|
||||||
featperform prism aR aF aT
|
featperform prism result aF aT
|
||||||
|
|
||||||
checknbshapes aR -shape 2
|
checknbshapes result -face 3
|
||||||
|
|
||||||
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
||||||
|
Loading…
x
Reference in New Issue
Block a user