mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0031424: Visualization - stop using Prs3d_Drawer::HLRAngle() parameter
Prs3d_Drawer, AIS_Shape, AIS_InteractiveContext - removed properties HLRDeviationCoefficient() and HLRAngle(). Prs3d_Drawer::HLRAngle() is kept as alias to Prs3d_Drawer::DeviationAngle() with deprecated flag. Prs3d_Drawer::DeviationAngle() default value is changed from 12 to 20 degrees to match Prs3d_Drawer::HLRAngle() which has been previously used in majority of cases. Removed unused property HLRBRep_PolyAlgo::Angle().
This commit is contained in:
@@ -971,23 +971,6 @@ public: //! @name tessellation deviation properties for automatic triangulation
|
||||
Standard_EXPORT void SetAngleAndDeviation (const Handle(AIS_InteractiveObject)& theIObj,
|
||||
const Standard_Real theAngle,
|
||||
const Standard_Boolean theToUpdateViewer);
|
||||
|
||||
|
||||
//! Sets the deviation coefficient aCoefficient for removal of hidden lines created by different viewpoints in different presentations.
|
||||
//! The Default value is 0.02.
|
||||
Standard_EXPORT void SetHLRDeviationCoefficient (const Handle(AIS_InteractiveObject)& theIObj,
|
||||
const Standard_Real theCoefficient,
|
||||
const Standard_Boolean theToUpdateViewer);
|
||||
|
||||
Standard_EXPORT void SetHLRDeviationAngle (const Handle(AIS_InteractiveObject)& theIObj,
|
||||
const Standard_Real theAngle,
|
||||
const Standard_Boolean theToUpdateViewer);
|
||||
|
||||
//! Computes a HLRAngle and a HLRDeviationCoefficient by means of the angle anAngle
|
||||
//! and sets the corresponding methods in the default drawing tool with these values.
|
||||
Standard_EXPORT void SetHLRAngleAndDeviation (const Handle(AIS_InteractiveObject)& theIObj,
|
||||
const Standard_Real theAngle,
|
||||
const Standard_Boolean theToUpdateViewer);
|
||||
|
||||
//! Sets the deviation coefficient theCoefficient.
|
||||
//! Drawings of curves or patches are made with respect to a maximal chordal deviation.
|
||||
@@ -1017,40 +1000,10 @@ public: //! @name tessellation deviation properties for automatic triangulation
|
||||
//! This deviation will be: SizeOfObject * DeviationCoefficient.
|
||||
Standard_EXPORT Standard_Real DeviationCoefficient() const;
|
||||
|
||||
//! default 12 degrees
|
||||
//! default 20 degrees
|
||||
Standard_EXPORT void SetDeviationAngle (const Standard_Real anAngle);
|
||||
|
||||
Standard_EXPORT Standard_Real DeviationAngle() const;
|
||||
|
||||
//! Sets the deviation coefficient aCoefficient for removal of hidden lines created by different viewpoints in different presentations.
|
||||
//! The Default value is 0.02.
|
||||
Standard_EXPORT void SetHLRDeviationCoefficient (const Standard_Real aCoefficient);
|
||||
|
||||
//! Returns the real number value of the hidden line removal deviation coefficient.
|
||||
//! A Deviation coefficient is used in the shading display mode.
|
||||
//! The shape is seen decomposed into triangles.
|
||||
//! These are used to calculate reflection of light from the surface of the object.
|
||||
//! The triangles are formed from chords of the curves in the shape.
|
||||
//! The deviation coefficient give the highest value of the angle with which a chord can deviate from a tangent to a curve.
|
||||
//! If this limit is reached, a new triangle is begun.
|
||||
//! To find the hidden lines, hidden line display mode entails recalculation of the view at each different projector perspective.
|
||||
//! Because hidden lines entail calculations of more than usual complexity to decompose them into these triangles,
|
||||
//! a deviation coefficient allowing greater tolerance is used.
|
||||
//! This increases efficiency in calculation.
|
||||
//! The Default value is 0.02.
|
||||
Standard_EXPORT Standard_Real HLRDeviationCoefficient() const;
|
||||
|
||||
//! Sets the HLR angle.
|
||||
Standard_EXPORT void SetHLRAngle (const Standard_Real theAngle);
|
||||
|
||||
//! Returns the real number value of the deviation angle in hidden line removal views in this interactive context.
|
||||
//! The default value is 20*PI/180.
|
||||
Standard_EXPORT Standard_Real HLRAngle() const;
|
||||
|
||||
//! compute with theAngle a HLRAngle and a HLRDeviationCoefficient
|
||||
//! and set them in myHLRAngle and in myHLRDeviationCoefficient of myDefaultDrawer;
|
||||
//! theAngle is in radian; ( 1 deg < angle in deg < 20 deg)
|
||||
Standard_EXPORT void SetHLRAngleAndDeviation (const Standard_Real theAngle);
|
||||
|
||||
public: //! @name HLR (Hidden Line Removal) display attributes
|
||||
|
||||
|
Reference in New Issue
Block a user