1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions

44
src/GC/GC_MakeTranslation.cxx Executable file
View File

@@ -0,0 +1,44 @@
// 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 d une translation 3d de Geom de vecteur de tanslation Vec. +
//=========================================================================
GC_MakeTranslation::GC_MakeTranslation(const gp_Vec& Vec ) {
TheTranslation = new Geom_Transformation();
TheTranslation->SetTranslation(Vec);
}
//=========================================================================
// Creation d une translation 3d de Geom de vecteur de tanslation le +
// vecteur reliant Point1 a 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;
}