mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-12 02:40:22 +08:00
Before the fix, angular deflection was scaled to some coefficient in the method BRepMesh_Deflection::ComputeDeflection(...). Now, angular deflection is constant.
64 lines
2.4 KiB
C++
64 lines
2.4 KiB
C++
// Created on: 2016-04-19
|
|
// Copyright (c) 2016 OPEN CASCADE SAS
|
|
// Created by: Oleg AGASHIN
|
|
//
|
|
// 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 _BRepMesh_Deflection_HeaderFile
|
|
#define _BRepMesh_Deflection_HeaderFile
|
|
|
|
#include <Standard_Type.hxx>
|
|
#include <Standard_Handle.hxx>
|
|
#include <Standard_Transient.hxx>
|
|
#include <IMeshData_Types.hxx>
|
|
|
|
class Bnd_Box;
|
|
class TopoDS_Face;
|
|
class TopoDS_Edge;
|
|
struct IMeshTools_Parameters;
|
|
|
|
//! Auxiliary tool encompassing methods to compute deflection of shapes.
|
|
class BRepMesh_Deflection : public Standard_Transient
|
|
{
|
|
public:
|
|
|
|
//! Returns absolute deflection for theShape with respect to the
|
|
//! relative deflection and theMaxShapeSize.
|
|
//! @param theShape shape for that the deflection should be computed.
|
|
//! @param theRelativeDeflection relative deflection.
|
|
//! @param theMaxShapeSize maximum size of the whole shape.
|
|
//! @return absolute deflection for the shape.
|
|
Standard_EXPORT static Standard_Real ComputeAbsoluteDeflection (
|
|
const TopoDS_Shape& theShape,
|
|
const Standard_Real theRelativeDeflection,
|
|
const Standard_Real theMaxShapeSize);
|
|
|
|
//! Computes and updates deflection of the given discrete edge.
|
|
Standard_EXPORT static void ComputeDeflection (
|
|
const IMeshData::IEdgeHandle& theDEdge,
|
|
const Standard_Real theMaxShapeSize,
|
|
const IMeshTools_Parameters& theParameters);
|
|
|
|
//! Computes and updates deflection of the given discrete wire.
|
|
Standard_EXPORT static void ComputeDeflection (
|
|
const IMeshData::IWireHandle& theDWire,
|
|
const IMeshTools_Parameters& theParameters);
|
|
|
|
//! Computes and updates deflection of the given discrete face.
|
|
Standard_EXPORT static void ComputeDeflection (
|
|
const IMeshData::IFaceHandle& theDFace,
|
|
const IMeshTools_Parameters& theParameters);
|
|
|
|
DEFINE_STANDARD_RTTI_INLINE(BRepMesh_Deflection, Standard_Transient)
|
|
};
|
|
|
|
#endif |