mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0026317: Visualization - AIS_LengthDimension::CheckPlane() is incorrect
This commit is contained in:
@@ -188,8 +188,11 @@ void AIS_LengthDimension::SetMeasuredShapes (const TopoDS_Shape& theFirstShape,
|
|||||||
//=======================================================================
|
//=======================================================================
|
||||||
Standard_Boolean AIS_LengthDimension::CheckPlane (const gp_Pln& thePlane) const
|
Standard_Boolean AIS_LengthDimension::CheckPlane (const gp_Pln& thePlane) const
|
||||||
{
|
{
|
||||||
if (!thePlane.Contains (myFirstPoint, Precision::Confusion()) &&
|
Standard_Boolean anIsFaultyNormal =
|
||||||
!thePlane.Contains (mySecondPoint, Precision::Confusion()))
|
thePlane.Axis().Direction().IsParallel(gce_MakeDir (myFirstPoint, mySecondPoint), Precision::Angular());
|
||||||
|
|
||||||
|
if ((!thePlane.Contains (myFirstPoint, Precision::Confusion()) && !thePlane.Contains (mySecondPoint, Precision::Confusion()))
|
||||||
|
|| anIsFaultyNormal)
|
||||||
{
|
{
|
||||||
return Standard_False;
|
return Standard_False;
|
||||||
}
|
}
|
||||||
|
21
tests/bugs/vis/bug26317
Normal file
21
tests/bugs/vis/bug26317
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
puts "============"
|
||||||
|
puts "CR26317"
|
||||||
|
puts "============"
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
##########################################################################################
|
||||||
|
puts "Visualization, AIS_LengthDimension::CheckPlane is incorrect"
|
||||||
|
##########################################################################################
|
||||||
|
|
||||||
|
pload VISUALIZATION MODELING
|
||||||
|
|
||||||
|
box b 100 200 300
|
||||||
|
vinit View1
|
||||||
|
vclear
|
||||||
|
vaxo
|
||||||
|
explode b F
|
||||||
|
vdisplay b_1 b_2
|
||||||
|
vdimension len -length -shapes b_1 b_2 -plane zox
|
||||||
|
vfit
|
||||||
|
|
||||||
|
vdump ${imagedir}/${casename}.png
|
Reference in New Issue
Block a user