mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +03:00
45 lines
1.3 KiB
C++
Executable File
45 lines
1.3 KiB
C++
Executable File
// File: GC_MakeTranslation.cxx
|
|
// Created: Fri Oct 2 16:38:15 1992
|
|
// Author: Remi GILET
|
|
// <reg@topsn3>
|
|
|
|
#include <GC_MakeTranslation.ixx>
|
|
#include <GC_MakeTranslation.hxx>
|
|
#include <StdFail_NotDone.hxx>
|
|
|
|
//=========================================================================
|
|
// Creation of a 3D Geom translation of tanslation vector Vec. +
|
|
//=========================================================================
|
|
|
|
GC_MakeTranslation::GC_MakeTranslation(const gp_Vec& Vec ) {
|
|
TheTranslation = new Geom_Transformation();
|
|
TheTranslation->SetTranslation(Vec);
|
|
}
|
|
|
|
//=========================================================================
|
|
// Creation of a 3D Geom translation of translation vector connecting
|
|
// Point1 and Point2. +
|
|
//=========================================================================
|
|
|
|
GC_MakeTranslation::GC_MakeTranslation(const gp_Pnt& Point1 ,
|
|
const gp_Pnt& Point2 ) {
|
|
TheTranslation = new Geom_Transformation();
|
|
TheTranslation->SetTranslation(Point1,Point2);
|
|
}
|
|
|
|
const Handle(Geom_Transformation)& GC_MakeTranslation::Value() const
|
|
{
|
|
return TheTranslation;
|
|
}
|
|
|
|
const Handle(Geom_Transformation)& GC_MakeTranslation::Operator() const
|
|
{
|
|
return TheTranslation;
|
|
}
|
|
|
|
GC_MakeTranslation::operator Handle(Geom_Transformation) () const
|
|
{
|
|
return TheTranslation;
|
|
}
|
|
|