blob: ad3cadd322e6ec2b99326fd290f0dc7d1edc4b6d (
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
|
// File: Geom_Conic.cxx
// Created: Wed Mar 10 09:31:40 1993
// Author: JCV
// <fid@phylox>
// Copyright: Matra Datavision 1993
//File Geom_Conic.cx, JCV 17/01/91
#include <Geom_Conic.ixx>
typedef Geom_Conic Conic;
typedef Handle(Geom_Conic) Handle(Conic);
typedef gp_Ax1 Ax1;
typedef gp_Ax2 Ax2;
typedef gp_Pnt Pnt;
typedef gp_Vec Vec;
void Geom_Conic::Reverse () {
gp_Dir Vz = pos.Direction ();
Vz.Reverse();
pos.SetDirection (Vz);
}
void Geom_Conic::SetAxis (const Ax1& A1) { pos.SetAxis (A1); }
void Geom_Conic::SetLocation (const Pnt& O) { pos.SetLocation (O); }
void Geom_Conic::SetPosition (const Ax2& A2) { pos = A2; }
Ax1 Geom_Conic::Axis () const { return pos.Axis(); }
GeomAbs_Shape Geom_Conic::Continuity () const { return GeomAbs_CN; }
Pnt Geom_Conic::Location () const { return pos.Location(); }
const gp_Ax2& Geom_Conic::Position () const { return pos; }
Ax1 Geom_Conic::XAxis () const {return Ax1(pos.Location(), pos.XDirection());}
Ax1 Geom_Conic::YAxis () const {return Ax1(pos.Location(), pos.YDirection());}
Standard_Boolean Geom_Conic::IsCN (const Standard_Integer ) const { return Standard_True; }
|