blob: 7e4953da4fb2133d7806f05bfa9ec944194ebb25 (
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
|
//--------------------------------------------------------------------
//
// File Name : IGESSolid_VertexList.cxx
// Date :
// Author : CKY / Contract Toubro-Larsen
// Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------
#include <IGESSolid_VertexList.ixx>
#include <Standard_DimensionMismatch.hxx>
IGESSolid_VertexList::IGESSolid_VertexList () { }
void IGESSolid_VertexList::Init
(const Handle(TColgp_HArray1OfXYZ)& Vertices)
{
if (Vertices.IsNull() || Vertices->Lower() != 1)
Standard_DimensionMismatch::Raise("IGESSolid_VertexList : Init");
theVertices = Vertices;
InitTypeAndForm(502,1);
}
Standard_Integer IGESSolid_VertexList::NbVertices () const
{
return (theVertices.IsNull() ? 0 : theVertices->Length());
}
gp_Pnt IGESSolid_VertexList::Vertex (const Standard_Integer Index) const
{
return gp_Pnt(theVertices->Value(Index));
}
|