mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-10 12:25:50 +03:00
Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl": - WOK-generated header files from inc and sources from drv are moved to src - CDL files removed - All packages are converted to nocdlpack
92 lines
2.8 KiB
C++
92 lines
2.8 KiB
C++
// Created on: 1995-09-21
|
|
// Created by: Philippe GIRODENGO
|
|
// Copyright (c) 1995-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 _StlMesh_MeshTriangle_HeaderFile
|
|
#define _StlMesh_MeshTriangle_HeaderFile
|
|
|
|
#include <Standard.hxx>
|
|
#include <Standard_Type.hxx>
|
|
|
|
#include <Standard_Integer.hxx>
|
|
#include <Standard_Real.hxx>
|
|
#include <MMgt_TShared.hxx>
|
|
class Standard_NegativeValue;
|
|
|
|
|
|
class StlMesh_MeshTriangle;
|
|
DEFINE_STANDARD_HANDLE(StlMesh_MeshTriangle, MMgt_TShared)
|
|
|
|
//! A mesh triangle is defined with
|
|
//! three geometric vertices and an orientation
|
|
class StlMesh_MeshTriangle : public MMgt_TShared
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
//! empty constructor
|
|
Standard_EXPORT StlMesh_MeshTriangle();
|
|
|
|
//! create a triangle defined with the indexes of its three vertices
|
|
//! and its orientation
|
|
//! Raised if V1, V2 or V3 is lower than zero
|
|
Standard_EXPORT StlMesh_MeshTriangle(const Standard_Integer V1, const Standard_Integer V2, const Standard_Integer V3, const Standard_Real Xn, const Standard_Real Yn, const Standard_Real Zn);
|
|
|
|
//! get indexes of the three vertices (V1,V2,V3) and the orientation
|
|
Standard_EXPORT void GetVertexAndOrientation (Standard_Integer& V1, Standard_Integer& V2, Standard_Integer& V3, Standard_Real& Xn, Standard_Real& Yn, Standard_Real& Zn) const;
|
|
|
|
//! set indexes of the three vertices (V1,V2,V3) and the orientation
|
|
//! Raised if V1, V2 or V3 is lower than zero
|
|
Standard_EXPORT void SetVertexAndOrientation (const Standard_Integer V1, const Standard_Integer V2, const Standard_Integer V3, const Standard_Real Xn, const Standard_Real Yn, const Standard_Real Zn);
|
|
|
|
//! get indexes of the three vertices (V1,V2,V3)
|
|
Standard_EXPORT void GetVertex (Standard_Integer& V1, Standard_Integer& V2, Standard_Integer& V3) const;
|
|
|
|
//! set indexes of the three vertices (V1,V2,V3)
|
|
//! Raised if V1, V2 or V3 is lower than zero
|
|
Standard_EXPORT void SetVertex (const Standard_Integer V1, const Standard_Integer V2, const Standard_Integer V3);
|
|
|
|
|
|
|
|
|
|
DEFINE_STANDARD_RTTI(StlMesh_MeshTriangle,MMgt_TShared)
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
Standard_Integer MyV1;
|
|
Standard_Integer MyV2;
|
|
Standard_Integer MyV3;
|
|
Standard_Real MyXn;
|
|
Standard_Real MyYn;
|
|
Standard_Real MyZn;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _StlMesh_MeshTriangle_HeaderFile
|