blob: a29413fde33a066b335dab4ba18b1ee4b5fba38c (
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
|
//--------------------------------------------------------------------
//
// File Name : IGESGeom_BoundedSurface.cxx
// Date :
// Author : CKY / Contract Toubro-Larsen
// Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------
#include <IGESGeom_BoundedSurface.ixx>
#include <Standard_DimensionMismatch.hxx>
IGESGeom_BoundedSurface::IGESGeom_BoundedSurface () { }
void IGESGeom_BoundedSurface::Init
(const Standard_Integer aType,
const Handle(IGESData_IGESEntity)& aSurface,
const Handle(IGESGeom_HArray1OfBoundary)& aBoundary)
{
if (aBoundary->Lower() != 1)
Standard_DimensionMismatch::Raise("IGESGeom_BoundedSurface : Init");
theType = aType;
theSurface = aSurface;
theBoundaries = aBoundary;
InitTypeAndForm(143,0);
}
Standard_Integer IGESGeom_BoundedSurface::RepresentationType () const
{
return theType;
}
Handle(IGESData_IGESEntity) IGESGeom_BoundedSurface::Surface () const
{
return theSurface;
}
Standard_Integer IGESGeom_BoundedSurface::NbBoundaries () const
{
return theBoundaries->Length();
}
Handle(IGESGeom_Boundary) IGESGeom_BoundedSurface::Boundary
(const Standard_Integer Index) const
{
return theBoundaries->Value(Index);
}
|