blob: dc68ee2a648cf5373c0bb7af5ad53897b8780f71 (
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_Line.cxx
// Date :
// Author : CKY / Contract Toubro-Larsen
// Copyright : MATRA-DATAVISION 1993
//
//--------------------------------------------------------------------
#include <IGESGeom_Line.ixx>
#include <gp_GTrsf.hxx>
IGESGeom_Line::IGESGeom_Line () { }
void IGESGeom_Line::Init
(const gp_XYZ& aStart, const gp_XYZ& anEnd)
{
theStart = aStart;
theEnd = anEnd;
InitTypeAndForm(110,0);
}
Standard_Integer IGESGeom_Line::Infinite () const
{ return FormNumber(); }
void IGESGeom_Line::SetInfinite (const Standard_Integer status)
{ if (status >= 0 && status <= 2) InitTypeAndForm(110,status); }
gp_Pnt IGESGeom_Line::StartPoint () const
{
gp_Pnt start(theStart);
return start;
}
gp_Pnt IGESGeom_Line::TransformedStartPoint () const
{
gp_XYZ Start = theStart;
if (HasTransf()) Location().Transforms(Start);
gp_Pnt transStart(Start);
return transStart;
}
gp_Pnt IGESGeom_Line::EndPoint () const
{
gp_Pnt end(theEnd);
return end;
}
gp_Pnt IGESGeom_Line::TransformedEndPoint () const
{
gp_XYZ End = theEnd;
if (HasTransf()) Location().Transforms(End);
gp_Pnt transEnd(End);
return transEnd;
}
|