mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-30 13:05:50 +03:00
80 lines
1.8 KiB
C++
80 lines
1.8 KiB
C++
// Created on: 1991-02-21
|
|
// Created by: Isabelle GRIGNON
|
|
// Copyright (c) 1991-1999 Matra Datavision
|
|
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#ifndef _Extrema_POnSurf_HeaderFile
|
|
#define _Extrema_POnSurf_HeaderFile
|
|
|
|
#include <Standard.hxx>
|
|
#include <Standard_DefineAlloc.hxx>
|
|
|
|
#include <gp_Pnt.hxx>
|
|
class gp_Pnt;
|
|
|
|
|
|
//! Definition of a point on surface.
|
|
class Extrema_POnSurf
|
|
{
|
|
public:
|
|
|
|
DEFINE_STANDARD_ALLOC
|
|
|
|
|
|
//! Creation of an indefinite point on surface.
|
|
Extrema_POnSurf();
|
|
|
|
//! Creation of a point on surface with parameter
|
|
//! values on the surface and a Pnt from gp.
|
|
Extrema_POnSurf(const Standard_Real U, const Standard_Real V, const gp_Pnt& P);
|
|
|
|
//! Returns the 3d point.
|
|
const gp_Pnt& Value() const;
|
|
|
|
//! Sets the params of current POnSurf instance.
|
|
//! (e.g. to the point to be projected).
|
|
void SetParameters (const Standard_Real theU, const Standard_Real theV, const gp_Pnt& thePnt);
|
|
|
|
//! Returns the parameter values on the surface.
|
|
void Parameter (Standard_Real& U, Standard_Real& V) const;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
Standard_Real myU;
|
|
Standard_Real myV;
|
|
gp_Pnt myP;
|
|
|
|
|
|
};
|
|
|
|
|
|
#include <Extrema_POnSurf.lxx>
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _Extrema_POnSurf_HeaderFile
|