summaryrefslogtreecommitdiff
path: root/src/IGESGeom/IGESGeom_RuledSurface.cxx
blob: fc96648e831711025f5f84570bf20c6ce97269f4 (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
//--------------------------------------------------------------------
//
//  File Name : IGESGeom_RuledSurface.cxx
//  Date      :
//  Author    : CKY / Contract Toubro-Larsen
//  Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------

#include <IGESGeom_RuledSurface.ixx>


    IGESGeom_RuledSurface::IGESGeom_RuledSurface ()    {  }


    void IGESGeom_RuledSurface::Init
  (const Handle(IGESData_IGESEntity)& aCurve,
   const Handle(IGESData_IGESEntity)& anotherCurve,
   const Standard_Integer             aDirFlag,
   const Standard_Integer             aDevFlag)
{
  theCurve1  = aCurve;
  theCurve2  = anotherCurve;
  theDirFlag = aDirFlag;
  theDevFlag = aDevFlag;
  InitTypeAndForm(118,FormNumber());
//    FormNumber 0-1 : Ruling spec.  0/Arc Length  1/Parameter
}

    void  IGESGeom_RuledSurface::SetRuledByParameter (const Standard_Boolean F)
{
  InitTypeAndForm(118, (F ? 1 : 0));
}

    Handle(IGESData_IGESEntity) IGESGeom_RuledSurface::FirstCurve () const
{
  return theCurve1;
}

    Handle(IGESData_IGESEntity) IGESGeom_RuledSurface::SecondCurve () const
{
  return theCurve2;
}

    Standard_Integer IGESGeom_RuledSurface::DirectionFlag () const
{
  return theDirFlag;
}

    Standard_Boolean IGESGeom_RuledSurface::IsDevelopable () const
{
  return (theDevFlag == 1);
}

    Standard_Boolean  IGESGeom_RuledSurface::IsRuledByParameter () const
{
  return (FormNumber() != 0);
}