blob: 14aa9d99d5a44bb0d9680580214268eff41bdf98 (
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 : IGESAppli_FiniteElement.cxx
// Date :
// Author : CKY / Contract Toubro-Larsen
// Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------
#include <IGESAppli_FiniteElement.ixx>
#include <Standard_DimensionMismatch.hxx>
#include <IGESAppli.hxx>
IGESAppli_FiniteElement::IGESAppli_FiniteElement () { }
void IGESAppli_FiniteElement::Init
(const Standard_Integer aType,
const Handle(IGESAppli_HArray1OfNode)& allNodes,
const Handle(TCollection_HAsciiString)& aName)
{
if (allNodes->Lower() != 1)
Standard_DimensionMismatch::Raise("IGESAppli_FiniteElement : Init");
theTopology = aType;
theNodes = allNodes;
theName = aName;
InitTypeAndForm(136,0);
}
Standard_Integer IGESAppli_FiniteElement::Topology () const
{
return theTopology;
}
Handle(IGESAppli_Node) IGESAppli_FiniteElement::Node
(const Standard_Integer Index) const
{
return theNodes->Value(Index);
}
Handle(TCollection_HAsciiString) IGESAppli_FiniteElement::Name () const
{
return theName;
}
Standard_Integer IGESAppli_FiniteElement::NbNodes () const
{
return theNodes->Length();
}
|