7fd59977 |
1 | //-------------------------------------------------------------------- |
2 | // |
3 | // File Name : IGESSolid_SolidInstance.cxx |
4 | // Date : |
5 | // Author : CKY / Contract Toubro-Larsen |
6 | // Copyright : MATRA-DATAVISION 1993 |
7 | // |
8 | //-------------------------------------------------------------------- |
9 | |
10 | #include <IGESSolid_SolidInstance.ixx> |
11 | |
12 | |
13 | IGESSolid_SolidInstance::IGESSolid_SolidInstance () { } |
14 | |
15 | |
16 | void IGESSolid_SolidInstance::Init |
17 | (const Handle(IGESData_IGESEntity)& anEntity) |
18 | { |
19 | theEntity = anEntity; |
20 | InitTypeAndForm(430,0); |
21 | } |
22 | |
23 | Standard_Boolean IGESSolid_SolidInstance::IsBrep () const |
24 | { return (FormNumber() == 1); } |
25 | |
26 | void IGESSolid_SolidInstance::SetBrep (const Standard_Boolean brep) |
27 | { InitTypeAndForm(430, (brep ? 1 : 0)); } |
28 | |
29 | Handle(IGESData_IGESEntity) IGESSolid_SolidInstance::Entity () const |
30 | { |
31 | return theEntity; |
32 | } |