MAT2d_Tool2d::MAT2d_Tool2d()
{
theDirection = 1.;
+ theJoinType = GeomAbs_Arc; //default
theNumberOfBisectors = 0;
theNumberOfVecs = 0;
theNumberOfPnts = 0;
else theDirection = -1.;
}
+//=============================================================================
+//function : SetJoinType
+//purpose :
+//=============================================================================
+void MAT2d_Tool2d::SetJoinType(const GeomAbs_JoinType aJoinType)
+{
+ theJoinType = aJoinType;
+}
+
//=============================================================================
//function : NumberOfItems
//purpose :
Standard_Real EpsDist = MAT2d_TOLCONF*100. ;
Distance = Dist(1);
for (Standard_Integer i = 1; i <= 4; i++){
+ if (theJoinType == GeomAbs_Intersection &&
+ Precision::IsInfinite(Dist(i)))
+ continue;
if (Abs(Dist(i) - Distance) > EpsDist) {
Distance = Precision::Infinite();
return Standard_False;