blob: 649f3caa9e27e9e6bbe282d301f7d7c57631c859 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
// File: BOP_ConnexityBlock.cxx
// Created: Fri Apr 13 10:26:49 2001
// Author: Peter KURNEV
// <pkv@irinox>
#include <BOP_ConnexityBlock.ixx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <TopoDS_Shape.hxx>
//=======================================================================
// function: BOP_ConnexityBlock::BOP_ConnexityBlock
// purpose:
//=======================================================================
BOP_ConnexityBlock::BOP_ConnexityBlock()
:
myRegularity(Standard_False)
{}
//=======================================================================
// function: SetRegularity
// purpose:
//=======================================================================
void BOP_ConnexityBlock::SetRegularity (const Standard_Boolean aFlag)
{
myRegularity=aFlag;
}
//=======================================================================
// function: IsRegular
// purpose:
//=======================================================================
Standard_Boolean BOP_ConnexityBlock::IsRegular ()const
{
return myRegularity;
}
//=======================================================================
// function: SetShapes
// purpose:
//=======================================================================
void BOP_ConnexityBlock::SetShapes(const TopTools_ListOfShape& anEdges)
{
myShapes.Clear();
TopTools_ListIteratorOfListOfShape anIt(anEdges);
for (; anIt.More(); anIt.Next()) {
const TopoDS_Shape& anE=anIt.Value();
myShapes.Append(anE);
}
}
//=======================================================================
// function: SetShapes
// purpose:
//=======================================================================
void BOP_ConnexityBlock::SetShapes(const TopTools_IndexedMapOfOrientedShape& anEdges)
{
myShapes.Clear();
Standard_Integer i, aNb;
aNb=anEdges.Extent();
for (i=1; i<=aNb; i++) {
const TopoDS_Shape& anE=anEdges(i);
myShapes.Append(anE);
}
}
//=======================================================================
// function: Shapes
// purpose:
//=======================================================================
const TopTools_ListOfShape& BOP_ConnexityBlock::Shapes()const
{
return myShapes;
}
|