# include occt macros. compiler_bitness, os_wiht_bit, compiler
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/occt_macros")
- # specify product folder in connectin with 3RDPARTY_DIR
+ # specify product folder in connection with 3RDPARTY_DIR
if (3RDPARTY_DIR AND EXISTS "${3RDPARTY_DIR}")
#CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_DIR 3RDPARTY_${PRODUCT_NAME}_DIR PATH "The directory containing ${PRODUCT_NAME}")
endif()
# Add paths to 3rdparty subfolders containing name "bison" to CMAKE_PROGRAM_PATH variable to make
-# these paths searhed by find_package
+# these paths searched by find_package
if (3RDPARTY_DIR)
file (GLOB BISON_PATHS LIST_DIRECTORIES true "${3RDPARTY_DIR}/*bison*/")
foreach (candidate_path ${BISON_PATHS})
message (STATUS "add_custom_command: TARGET ${_target} PRE_BUILD ${_cmds}")
endif()
# because CMake PRE_BUILD command does not support dependencies,
- # we check dependencies explicity in cotire script mode when the pre-build action is run
+ # we check dependencies explicitly in cotire script mode when the pre-build action is run
add_custom_command(
TARGET "${_target}"
PRE_BUILD ${_cmds}
endif()
if (WIN32 AND CMAKE_${_language}_COMPILER_ID MATCHES "MSVC|Intel")
# unity file compilation results in potentially huge object file,
- # thus use /bigobj by default unter cl.exe and Windows Intel
+ # thus use /bigobj by default under cl.exe and Windows Intel
set_property (SOURCE "${_unityFile}" APPEND_STRING PROPERTY COMPILE_FLAGS "/bigobj")
endif()
cotire_set_cmd_to_prologue(_unityCmd)
endif()
# Add paths to 3rdparty subfolders containing name "flex" to CMAKE_PROGRAM_PATH and
-# CMAKE_INCLUDE_PATH variables to make these paths searhed by find_package
+# CMAKE_INCLUDE_PATH variables to make these paths searched by find_package
if (3RDPARTY_DIR)
file (GLOB FLEX_PATHS LIST_DIRECTORIES true "${3RDPARTY_DIR}/*flex*")
foreach (candidate_path ${FLEX_PATHS})
OCCT_MAKE_COMPILER_SHORT_NAME()
OCCT_MAKE_COMPILER_BITNESS()
-# specify freetype folder in connectin with 3RDPARTY_DIR
+# specify freetype folder in connection with 3RDPARTY_DIR
if (3RDPARTY_DIR AND EXISTS "${3RDPARTY_DIR}")
#CHECK_PATH_FOR_CONSISTENCY (3RDPARTY_DIR 3RDPARTY_FREETYPE_DIR PATH "The directory containing freetype")
# Below, we have correct 3RDPARTY_DIR.
- # Initialize TBB folder in connectin with 3RDPARTY_DIR.
+ # Initialize TBB folder in connection with 3RDPARTY_DIR.
if (("${3RDPARTY_TBB_DIR}" STREQUAL "") OR (NOT EXISTS "${3RDPARTY_TBB_DIR}"))
FIND_PRODUCT_DIR ("${3RDPARTY_DIR}" TBB TBB_DIR_NAME)
if (TBB_DIR_NAME)
REQUIRED
CONFIG)
- # Achive include directory
+ # Archive include directory
get_target_property (TBB_INCLUDE_DIR TBB::tbb INTERFACE_INCLUDE_DIRECTORIES)
if (NOT DEFINED 3RDPARTY_TBB_INCLUDE_DIR)
set (3RDPARTY_TBB_INCLUDE_DIR "" CACHE PATH "The directory containing headers of the TBB")
string(TOLOWER "${LIB}" LIB_LOWER)
string(TOUPPER "${LIB}" LIB_UPPER)
- # Achive *.lib files and directory containing it.
+ # Archive *.lib files and directory containing it.
get_target_property (TBB_LIB_FILE "TBB::${LIB_LOWER}" IMPORTED_IMPLIB_${CHOSEN_IMPORT_CONF})
# Reserve cache variable for *.lib.
if (NOT DEFINED 3RDPARTY_${LIB_UPPER}_LIBRARY)
list (APPEND 3RDPARTY_NO_LIBS 3RDPARTY_${LIB_UPPER}_LIBRARY_DIR)
endif()
- # Achive *.dll files and directory containing it.
+ # Archive *.dll files and directory containing it.
get_target_property (TBB_DLL_FILE "TBB::${LIB_LOWER}" IMPORTED_LOCATION_${CHOSEN_IMPORT_CONF})
# Reserve cache variable for *.dll.
if (NOT DEFINED 3RDPARTY_${LIB_UPPER}_DLL)
REQUIRED
CONFIG)
endif()
- # TBB has been configured (in other case FATAL_ERROR occures).
+ # TBB has been configured (in other case FATAL_ERROR occurs).
- # Achive include directory.
+ # Archive include directory.
get_target_property (TBB_INCLUDE_DIR TBB::tbb INTERFACE_INCLUDE_DIRECTORIES)
if (NOT DEFINED 3RDPARTY_TBB_INCLUDE_DIR)
set (3RDPARTY_TBB_INCLUDE_DIR "" CACHE PATH "The directory containing headers of the TBB")
string(TOLOWER "${LIB}" LIB_LOWER)
string(TOUPPER "${LIB}" LIB_UPPER)
- # Achive *.so files and directory containing it.
+ # Archive *.so files and directory containing it.
get_target_property (TBB_SO_FILE "TBB::${LIB_LOWER}" IMPORTED_LOCATION_${CHOSEN_IMPORT_CONF})
# Reserve cache variable for *.so.
if (NOT DEFINED 3RDPARTY_${LIB_UPPER}_LIBRARY)
}
}
-# @thePackagePath eather file or folder. If it is a folder,
+# @thePackagePath either file or folder. If it is a folder,
# all files with @theHeaderExtensions are processed.
# "fwd.tcollection" section from upgrade.ini file is used to find out what
# classes have been converted and, thus, what forward declarations can be replaced
| Flex 2.6.4+ and Bison 3.7.1+ | https://sourceforge.net/projects/winflexbison/ | Data Exchange | Updating STEP and ExprIntrp parsers |
| RapidJSON 1.1+ | https://rapidjson.org/ | Data Exchange | Reading glTF files |
| Draco 1.4.1+ | https://github.com/google/draco | Data Exchange | Reading compressed glTF files |
-| Tcl/Tk 8.6.3+ | https://www.tcl.tk/software/tcltk/download.html | DRAW Test Harness | Tcl interpretor in Draw module |
+| Tcl/Tk 8.6.3+ | https://www.tcl.tk/software/tcltk/download.html | DRAW Test Harness | Tcl interpreter in Draw module |
| Qt 5.3.2+ | https://www.qt.io/download/ | Inspector and Samples | Inspector Qt samples and |
| Doxygen 1.8.5+ | https://www.doxygen.nl/download.html | Documentation | (Re)generating documentation |
| Graphviz 2.38+ | https://graphviz.org/ | Documentation | Generating dependency graphs |
app->Open("example.cbf", doc, filter2);
~~~~
-*PCDM_ReaderFilter::AppendMode_Protect* means that if the loading algorithm finds already existing attribute in the document, it will not be overwritten by attibute from the loading file. If it is needed to
+*PCDM_ReaderFilter::AppendMode_Protect* means that if the loading algorithm finds already existing attribute in the document, it will not be overwritten by attribute from the loading file. If it is needed to
substitute the existing attributes, the reading mode *PCDM_ReaderFilter::AppendMode_Overwrite* must be used instead.
*AddRead* and *AddSkipped* methods for attributes should not be used in one filter. If it is so, *AddSkipped* attributes are ignored during the read.
| Closed wire | Edges | All edges |
| Opened wire | Edges and ending vertexes | All edges plus ending vertexes of the wire |
| Edge | Vertexes | Two vertexes are expected |
-| Compound or CompSolid | To be used consequentially the above declared rule applied to all sub-shapes of the first level | Compound/CompSolid to be explored level by level until any the mentioned above types will be met |
+| Compound or CompSolid | To be used consequently the above declared rule applied to all sub-shapes of the first level | Compound/CompSolid to be explored level by level until any the mentioned above types will be met |
The history should return (and track) only elementary types of sub-shapes, i.e. Faces, Edges and Vertexes, while other so-called aggregation types: Compounds, Shells, Wires, are calculated by Selection mechanism automatically.
set (OpenCASCADE_INSTALL_PREFIX ${OpenCASCADE_DIR})
# Define OCCT toolkits so that CMake can put absolute paths to linker;
- # the library existance is not checked here, since modules can be disabled.
+ # the library existence is not checked here, since modules can be disabled.
foreach (aLibIter ${OpenCASCADE_TKLIST})
add_library (${aLibIter} SHARED IMPORTED)
#include <TCollection_HAsciiString.hxx>
#include <stdio.h>
-// This is a generic header for any STEP sheme
+// This is a generic header for any STEP scheme
static Handle(TCollection_HAsciiString) nulstr;
static Handle(Interface_HArray1OfHAsciiString) nularr;
const Standard_Real Coord,
Standard_Integer& Iloc)
{//Warning: Hunt is used to find number of knot which equals coordinate component,
- // when coordinate component definitly equals a knot only.
+ // when coordinate component definitely equals a knot only.
Standard_Real Tol=Precision::PConfusion()/10;
Standard_Integer i=1;
while((i <= Arr.Upper()) && (Abs(Coord - Arr(i)) > Tol)){
if((DComp > 0)&&(Abs(DComp)>Tol)) {
Hunt(Arr,Comp,N);
if (N >= NUp){
- //limit case: Hunt() cought upper knot. Take the last span.
+ //limit case: Hunt() caught upper knot. Take the last span.
N = NUp - 1;
}
if(Index==1) { Tmp1=BSplS->UKnot(N);
if((DComp < 0)&&(Abs(DComp)>Tol)){
Hunt(Arr,Comp,N);
if (N <= NLo) {
- //limit case: Hunt() cought lower knot. Take the first span.
+ //limit case: Hunt() caught lower knot. Take the first span.
N = NLo + 1;
}
if(Index==1) { Tmp1=BSplS->UKnot(N-1);
#include <gp_Dir.hxx>
#include <gp_Vec.hxx>
-#define myMinPnts 4 //Absolut possible minimum of sample points
+#define myMinPnts 4 //Absolute possible minimum of sample points
//Restriction of IntPolyh
//! get the Multplicities of the section
Standard_EXPORT virtual void Mults (TColStd_Array1OfInteger& TMults) const = 0;
- //! Returns if the sections are rationnal or not
+ //! Returns if the sections are rational or not
Standard_EXPORT virtual Standard_Boolean IsRational() const = 0;
//! Returns the number of intervals for continuity
//! This class creates and provides connection with X server.
//! Raises exception if can not connect to X server.
//! On Windows and Mac OS X (in case when Cocoa used) platforms this class does nothing.
-//! WARRNING: Do not close display connection manually!
+//! WARNING: Do not close display connection manually!
class Aspect_DisplayConnection : public Standard_Transient
{
DEFINE_STANDARD_RTTIEXT(Aspect_DisplayConnection, Standard_Transient)
//! Warning:
//! The Wires must be closed.
//!
- //! The edges of <W> can be modified if they have not pcurves
- //! on the surface <S> of <F>. In this case
- //! if <Proj> is false the first pcurve of the edge
- //! is positionned on <S>.
- //! if <Proj> is True ,the Pcurve On <S> is the
- //! projection of the curve 3d on <F>.
+ //! The edges of <W> can be modified if they don't have
+ //! pcurves on the surface <S> of <F>. In this case
+ //! if <Proj> is false the first pcurve of the edge
+ //! is positioned on <S>.
+ //! if <Proj> is True, the Pcurve On <S> is the
+ //! projection of the curve 3d on <F>.
Standard_EXPORT void Add (TopoDS_Wire& W);
//! Removes all the Wires
Standard_EXPORT void VerticesForSubstitute (TopTools_DataMapOfShapeShape& VerVerMap);
- //! Set maximal tolerance used for comparing distaces between vertices.
+ //! Set maximal tolerance used for comparing distances between vertices.
void SetTolConf(const Standard_Real theTolConf)
{
myTolConf = theTolConf;
}
- //! Get maximal tolerance used for comparing distaces between vertices.
+ //! Get maximal tolerance used for comparing distances between vertices.
Standard_Real GetTolConf() const
{
return myTolConf;
// Tables
Func.GetShape( NbPoles, NbKnots, Degree, NbPoles2d);
- // Calculation of BaryCentre (rationnal case).
+ // Calculation of BaryCentre (rational case).
if (Func.IsRational()) {
Standard_Real Xmax =-1.e100, Xmin = 1.e100,
Ymax =-1.e100, Ymin = 1.e100,
//! get the Multplicities of the section
Standard_EXPORT virtual void Mults (TColStd_Array1OfInteger& TMults) const Standard_OVERRIDE;
- //! Returns if the section is rationnal or not
+ //! Returns if the section is rational or not
Standard_EXPORT virtual Standard_Boolean IsRational() const Standard_OVERRIDE;
//! Returns the number of intervals for continuity
Standard_EXPORT virtual void Resolution (const Standard_Integer Index, const Standard_Real Tol, Standard_Real& TolU, Standard_Real& TolV) const Standard_OVERRIDE;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary (in radian)
//! SurfTol error inside the surface.
Standard_EXPORT void Section (const Standard_Real Param, const Standard_Real U, const Standard_Real V, Standard_Real& Pdeb, Standard_Real& Pfin, gp_Circ& C);
- //! Returns if the section is rationnal
+ //! Returns if the section is rational
Standard_EXPORT Standard_Boolean IsRational() const Standard_OVERRIDE;
//! Returns the length of the maximum section
Standard_EXPORT void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) Standard_OVERRIDE;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
Standard_EXPORT void Section (const Standard_Real Param, const Standard_Real U, const Standard_Real V, Standard_Real& Pdeb, Standard_Real& Pfin, gp_Circ& C);
- //! Returns if the section is rationnal
+ //! Returns if the section is rational
Standard_EXPORT Standard_Boolean IsRational() const Standard_OVERRIDE;
//! Returns the length of the maximum section
Standard_EXPORT void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) Standard_OVERRIDE;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
Standard_EXPORT void Section (const Standard_Real Param, const Standard_Real U, const Standard_Real V, const Standard_Real W, Standard_Real& Pdeb, Standard_Real& Pfin, gp_Circ& C);
- //! Returns if the section is rationnal
+ //! Returns if the section is rational
Standard_EXPORT Standard_Boolean IsRational() const Standard_OVERRIDE;
//! Returns the length of the maximum section
Standard_EXPORT void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) Standard_OVERRIDE;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
Standard_EXPORT void Section (const Standard_Real Param, const Standard_Real U, const Standard_Real V, const Standard_Real W, Standard_Real& Pdeb, Standard_Real& Pfin, gp_Circ& C);
- //! Returns if the section is rationnal
+ //! Returns if the section is rational
Standard_EXPORT Standard_Boolean IsRational() const Standard_OVERRIDE;
//! Returns the length of the maximum section
Standard_EXPORT void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) Standard_OVERRIDE;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
// is tangent to the edge curve. This condition is bad for classification.
// Therefore try to go to another point in the hope that there will be
// no tangent. If there tangent is preserved then leave the last point in
- // order to get this edge chanse to participate in classification.
+ // order to get this edge chance to participate in classification.
if (myCurEdgePar + Probing_Step < Probing_End)
continue;
}
if (!Surf.IsNull()) { // Add the face at end
- // Waiting the use of traces & retriction in BRepFill_Sweep
+ // Waiting the use of traces & restriction in BRepFill_Sweep
// Make Fuse.
BRepLib_MakeFace MkF;
MkF.Init(Surf, Standard_True, Precision::Confusion());
//=======================================================================
//function : CutEdge
-//purpose : Cut an edge at thw extrema of curves and at points of inflexion.
+//purpose : Cut an edge at the extrema of curves and at points of inflexion.
// Closed circles are also cut in two.
// If <Cuts> are empty the edge is not modified.
// The first and the last vertex of the original edge
protected:
- //! Initialize all the fields, this methode have to
+ //! Initialize all the fields, this methode has to
//! be called by the constructors of Inherited class.
Standard_EXPORT void Init (const TopoDS_Wire& Path);
- //! To preseve if possible the Tangent in transformations
+ //! To preserve if possible the Tangent in transformations
//! It is the default mode.
Standard_EXPORT void TangentIsMain();
- //! To preseve if possible the Normal in transformations
+ //! To preserve if possible the Normal in transformations
Standard_EXPORT void NormalIsMain();
- //! To preseve if possible the BiNormal in transformations
+ //! To preserve if possible the BiNormal in transformations
Standard_EXPORT void BiNormalIsMain();
TopoDS_Wire myPath;
TopoDS_Wire BRepFill_Pipe::PipeLine(const gp_Pnt& Point)
{
- // Postioning
+ // Positioning
gp_Pnt P;
P = Point;
P.Transform(myTrsf);
//=======================================================================
//function : Place
-//purpose : Implement a Section in the local refernce frame
+//purpose : Implement a Section in the local reference frame
// and return its parameter on the trajectory
//=======================================================================
void BRepFill_PipeShell::Place(const BRepFill_Section& Sec,
DEFINE_STANDARD_HANDLE(BRepFill_PipeShell, Standard_Transient)
//! Computes a topological shell using some wires
-//! (spines and profiles) and diplacement option
+//! (spines and profiles) and displacement option
//! Perform general sweeping construction
class BRepFill_PipeShell : public Standard_Transient
{
//! to be C0.
//! Give section to sweep.
//! Possibilities are :
- //! - Give one or sevral profile
+ //! - Give one or several profile
//! - Give one profile and an homotetic law.
//! - Automatic compute of correspondence between profile, and section on the sweeped shape
//! - correspondence between profile, and section on the sweeped shape defined by a vertex of the spine
Standard_EXPORT void SetTransition (const BRepFill_TransitionStyle Mode = BRepFill_Modified, const Standard_Real Angmin = 1.0e-2, const Standard_Real Angmax = 6.0);
//! Perform simulation of the sweep :
- //! Somes Section are returned.
+ //! Some Section are returned.
Standard_EXPORT void Simulate (const Standard_Integer NumberOfSection, TopTools_ListOfShape& Sections);
//! Builds the resulting shape (redefined from MakeShape).
//=======================================================================
//function : Build
-//purpose : Construt the result of sweeping
+//purpose : Construct the result of sweeping
//======================================================================
void BRepFill_Sweep::Build(TopTools_MapOfShape& ReversedEdges,
BRepFill_DataMapOfShapeHArray2OfShape& Tapes,
//! Tolerance To controle Corner management.
//!
//! If the discontinuity is lesser than <AngleMin> in radian The
- //! Transition Performed will be alway "Modified"
+ //! Transition Performed will be always "Modified"
Standard_EXPORT void SetAngularControl (const Standard_Real AngleMin = 0.01, const Standard_Real AngleMax = 6.0);
//! Set the flag that indicates attempt to approximate
//! to be C0.
Standard_EXPORT void SetForceApproxC1 (const Standard_Boolean ForceApproxC1);
- //! Build the Sweep Surface
+ //! Build the Sweep Surface
//! Transition define Transition strategy
//! Approx define Approximation Strategy
//! - GeomFill_Section : The composed Function Location X Section
//! is directly approximated.
//! - GeomFill_Location : The location law is approximated, and the
- //! SweepSurface is bulid algebric composition
+ //! SweepSurface builds an algebraic composition
//! of approximated location law and section law
//! This option is Ok, if Section.Surface() methode
//! is effective.
//! - define if necessary a new tolerance
//! - set if necessary analysis of degenerated shapes off
//! - add shapes to be controlled -> Add
-//! - compute -> Perfom
+//! - compute -> Perform
//! - output couples of connected edges for control
//! - output the problems if any
class BRepOffsetAPI_FindContigousEdges
//=======================================================================
//function : SetApprox
//purpose : Set approximation flag
-// for convertion input contours into ones consisting of
+// for conversion input contours into ones consisting of
// 2D circular arcs and 2D linear segments only
//=======================================================================
Standard_EXPORT void Init (const GeomAbs_JoinType Join = GeomAbs_Arc, const Standard_Boolean IsOpenResult = Standard_False);
//! Set approximation flag
- //! for convertion input contours into ones consisting of
+ //! for conversion input contours into ones consisting of
//! 2D circular arcs and 2D linear segments only.
Standard_EXPORT void SetApprox (const Standard_Boolean ToApprox);
const Standard_Boolean RemoveIntEdges = Standard_False,
const Message_ProgressRange& theRange = Message_ProgressRange());
- //! Returns instance of the unrelying intersection / arc algorithm.
+ //! Returns instance of the underlying intersection / arc algorithm.
Standard_EXPORT virtual const BRepOffset_MakeOffset& MakeOffset() const;
//! Does nothing.
//! along the path.
//! Give section to sweep.
//! Possibilities are :
- //! - Give one or sevral section
+ //! - Give one or several section
//! - Give one profile and an homotetic law.
//! - Automatic compute of correspondence between spine, and section
//! on the sweeped shape
Standard_Boolean status = algo.Perform(radius);
if (!status)
{
- di << "Error: the algrithm failed.";
+ di << "Error: the algorithm failed.";
return 1;
}
TopoDS_Edge fillet = algo.Result(common, M1, M2);
if (fillet.IsNull())
{
- di << "Error: the algrithm produced no result.";
+ di << "Error: the algorithm produced no result.";
return 1;
}
TopoDS_Edge chamfer = algo.Result(M1, M2, length1, length2);
if (chamfer.IsNull())
{
- di << "Error: the algrithm produced no result.";
+ di << "Error: the algorithm produced no result.";
return 1;
}
}
}
- // find a kk2 if symetriy
+ // find a kk2 if symmetry
kk2 = kk1;
i = kk1 - FirstNonZeroBsplineIndex + 2;
if ((kk1+1) <= LastIndex) {
}
}
- // find a ukk2 if symetriy
+ // find a ukk2 if symmetry
ukk2 = ukk1;
i = ukk1 - UFirstNonZeroBsplineIndex + 2;
if ((ukk1+1) <= ULastIndex) {
}
}
- // find a vkk2 if symetriy
+ // find a vkk2 if symmetry
vkk2 = vkk1;
j = vkk1 - VFirstNonZeroBsplineIndex + 2;
if ((vkk1+1) <= VLastIndex) {
//! Returns the point on the first support.
Standard_EXPORT virtual const gp_Pnt& Pnt2() const = 0;
- //! Returns if the section is rationnal
+ //! Returns if the section is rational
Standard_EXPORT virtual Standard_Boolean IsRational() const = 0;
//! Returns the length of the maximum section
Standard_Integer& NbPoles2d) = 0;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
Standard_EXPORT virtual void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) Standard_OVERRIDE = 0;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
//! but the values calculated can be senseless.
Standard_EXPORT virtual Blend_DecrochStatus Decroch (const math_Vector& Sol, gp_Vec& NRst1, gp_Vec& TgRst1, gp_Vec& NRst2, gp_Vec& TgRst2) const = 0;
- //! Returns if the section is rationnal
+ //! Returns if the section is rational
Standard_EXPORT virtual Standard_Boolean IsRational() const = 0;
//! Returns the length of the maximum section
Standard_EXPORT virtual void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) = 0;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
//! specific to the function.
Standard_EXPORT virtual Standard_Boolean Decroch (const math_Vector& Sol, gp_Vec& NS, gp_Vec& TgS) const = 0;
- //! Returns if the section is rationnal
+ //! Returns if the section is rational
Standard_EXPORT virtual Standard_Boolean IsRational() const = 0;
//! Returns the length of the maximum section
Standard_EXPORT virtual void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) = 0;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
Standard_EXPORT void Set (const Standard_Real Radius, const Standard_Integer Choix);
- //! Sets the type of section generation for the
+ //! Sets the type of section generation for the
//! approximations.
Standard_EXPORT void Set (const BlendFunc_SectionShape TypeSection);
Standard_EXPORT Standard_Boolean GetSection (const Standard_Real Param, const Standard_Real U, const Standard_Real V, const Standard_Real W, TColgp_Array1OfPnt& tabP, TColgp_Array1OfVec& tabV);
- //! Returns if the section is rationnal
+ //! Returns if the section is rational
Standard_EXPORT Standard_Boolean IsRational() const Standard_OVERRIDE;
//! Returns the length of the maximum section
//! <S>. May be one if Continuity(me) >= <S>
Standard_EXPORT Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE;
- //! Stores in <T> the parameters bounding the intervals
+ //! Stores in <T> the parameters bounding the intervals
//! of continuity <S>.
//!
//! The array must provide enough room to accommodate
Standard_EXPORT void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) Standard_OVERRIDE;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
Standard_EXPORT Standard_Boolean GetSection (const Standard_Real Param, const Standard_Real U, const Standard_Real V, const Standard_Real W, TColgp_Array1OfPnt& tabP, TColgp_Array1OfVec& tabV);
- //! Returns if the section is rationnal
+ //! Returns if the section is rational
Standard_EXPORT Standard_Boolean IsRational() const Standard_OVERRIDE;
//! Returns the length of the maximum section
Standard_EXPORT void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) Standard_OVERRIDE;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
//! Utile pour une visu rapide et approximative de la surface.
Standard_EXPORT void Section (const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, Standard_Real& Pdeb, Standard_Real& Pfin, gp_Lin& C);
- //! Returns if the section is rationnal
+ //! Returns if the section is rational
Standard_EXPORT Standard_Boolean IsRational() const Standard_OVERRIDE;
//! Returns the length of the maximum section
Standard_EXPORT void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) Standard_OVERRIDE;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
distmin(RealLast()),
mySShape(BlendFunc_Rational)
{
-// Initialisaton of cash control variables.
+// Initialisation of cash control variables.
tval = -9.876e100;
xval.Init(-9.876e100);
myXOrder = -1;
//! Utile pour une visu rapide et approximative de la surface.
Standard_EXPORT void Section (const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, Standard_Real& Pdeb, Standard_Real& Pfin, gp_Circ& C);
- //! Returns if the section is rationnal
+ //! Returns if the section is rational
Standard_EXPORT Standard_Boolean IsRational() const Standard_OVERRIDE;
//! Returns the length of the maximum section
Standard_EXPORT void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) Standard_OVERRIDE;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
Standard_EXPORT void Set (const Standard_Integer Choix);
- //! Sets the type of section generation for the
+ //! Sets the type of section generation for the
//! approximations.
Standard_EXPORT void Set (const BlendFunc_SectionShape TypeSection);
//! Method for graphic traces
Standard_EXPORT void Section (const Standard_Real Param, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, Standard_Real& Pdeb, Standard_Real& Pfin, gp_Circ& C);
- //! Returns if the section is rationnal
+ //! Returns if the section is rational
Standard_EXPORT Standard_Boolean IsRational() const Standard_OVERRIDE;
//! Returns the length of the maximum section
Standard_EXPORT void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) Standard_OVERRIDE;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
Standard_Integer& NbPoles2d) Standard_OVERRIDE;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
Standard_EXPORT void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) Standard_OVERRIDE;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary
//! SurfTol error inside the surface.
Standard_EXPORT void Initialize (const Adaptor3d_Surface& S, const Standard_Real Uinf, const Standard_Real Usup, const Standard_Real Vinf, const Standard_Real Vsup, const Standard_Real TolC, const Standard_Real TolS);
//! Computes the distances.
- //! An exception is raised if the fieds have not been
+ //! An exception is raised if the fields have not been
//! initialized.
Standard_EXPORT void Perform (const Adaptor3d_Curve& C, const Standard_Real Uinf, const Standard_Real Usup);
Standard_EXPORT void Initialize (const Adaptor3d_Surface& S, const Standard_Real Uinf, const Standard_Real Usup, const Standard_Real Vinf, const Standard_Real Vsup, const Standard_Real TolU, const Standard_Real TolV);
//! Computes the distances.
- //! An exception is raised if the fieds have not been
+ //! An exception is raised if the fields have not been
//! initialized.
Standard_EXPORT void Perform (const gp_Pnt& P);
Standard_EXPORT void Initialize (const Adaptor3d_Surface& S2, const Standard_Real Uinf2, const Standard_Real Usup2, const Standard_Real Vinf2, const Standard_Real Vsup2, const Standard_Real TolS1);
//! Computes the distances.
- //! An exception is raised if the fieds have not been
+ //! An exception is raised if the fields have not been
//! initialized.
Standard_EXPORT void Perform (const Adaptor3d_Surface& S1, const Standard_Real Uinf1, const Standard_Real Usup1, const Standard_Real Vinf1, const Standard_Real Vsup1, const Standard_Real TolS1);
protected:
- //! Angles corresspond to the Ox axis
+ //! Angles correspond to the Ox axis
//! ConstrOrder1(2) can be equal to 0, 1 or 2
Standard_EXPORT FairCurve_Energy(const Handle(TColgp_HArray1OfPnt2d)& Poles, const Standard_Integer ConstrOrder1, const Standard_Integer ConstrOrder2, const Standard_Boolean WithAuxValue = Standard_False, const Standard_Real Angle1 = 0, const Standard_Real Angle2 = 0, const Standard_Integer Degree = 2, const Standard_Real Curvature1 = 0, const Standard_Real Curvature2 = 0);
Standard_Integer Indice (const Standard_Integer i, const Standard_Integer j) const;
- //! compute the pole which depend of variables and G1 constraint
+ //! compute the pole which depend of variables and G1 constraint
Standard_EXPORT void ComputePolesG1 (const Standard_Integer Side, const Standard_Real Lambda, const gp_Pnt2d& P1, gp_Pnt2d& P2) const;
- //! compute the pole which depend of variables and G2 constraint
+ //! compute the pole which depend of variables and G2 constraint
Standard_EXPORT void ComputePolesG2 (const Standard_Integer Side, const Standard_Real Lambda, const Standard_Real Rho, const gp_Pnt2d& P1, gp_Pnt2d& P2) const;
- //! compute the energy (and derivatives) in intermediat format
+ //! compute the energy (and derivatives) in intermediate format
Standard_EXPORT virtual Standard_Boolean Compute (const Standard_Integer DerivativeOrder, math_Vector& Result) = 0;
DEFINE_STANDARD_ALLOC
- //! Angles corresspond to the Ox axis
+ //! Angles correspond to the Ox axis
Standard_EXPORT FairCurve_EnergyOfBatten(const Standard_Integer BSplOrder, const Handle(TColStd_HArray1OfReal)& FlatKnots, const Handle(TColgp_HArray1OfPnt2d)& Poles, const Standard_Integer ContrOrder1, const Standard_Integer ContrOrder2, const FairCurve_BattenLaw& Law, const Standard_Real LengthSliding, const Standard_Boolean FreeSliding = Standard_True, const Standard_Real Angle1 = 0, const Standard_Real Angle2 = 0);
//! return the lengthSliding = P1P2 + Sliding
//! compute the poles which correspond with the variable X
Standard_EXPORT virtual void ComputePoles (const math_Vector& X) Standard_OVERRIDE;
- //! compute the energy in intermediat format
+ //! compute the energy in intermediate format
Standard_EXPORT virtual Standard_Boolean Compute (const Standard_Integer DerivativeOrder, math_Vector& Result) Standard_OVERRIDE;
DEFINE_STANDARD_ALLOC
- //! Angles corresspond to the Ox axis
+ //! Angles correspond to the Ox axis
Standard_EXPORT FairCurve_EnergyOfMVC(const Standard_Integer BSplOrder, const Handle(TColStd_HArray1OfReal)& FlatKnots, const Handle(TColgp_HArray1OfPnt2d)& Poles, const Standard_Integer ContrOrder1, const Standard_Integer ContrOrder2, const FairCurve_BattenLaw& Law, const Standard_Real PhysicalRatio, const Standard_Real LengthSliding, const Standard_Boolean FreeSliding = Standard_True, const Standard_Real Angle1 = 0, const Standard_Real Angle2 = 0, const Standard_Real Curvature1 = 0, const Standard_Real Curvature2 = 0);
//! return the lengthSliding = P1P2 + Sliding
protected:
- //! compute the poles which correspond with the variable X
+ //! compute the poles which correspond with the variable X
Standard_EXPORT virtual void ComputePoles (const math_Vector& X) Standard_OVERRIDE;
- //! compute the energy in intermediat format
+ //! compute the energy in intermediate format
Standard_EXPORT virtual Standard_Boolean Compute (const Standard_Integer DerivativeOrder, math_Vector& Result) Standard_OVERRIDE;
//=======================================================================
//function : NeedToBeTreated
-//purpose : Say if the BSpline is rationnal and if the two first and two
+//purpose : Say if the BSpline is rational and if the two first and two
// last weigths are different
//=======================================================================
//=======================================================================
//function : NeedToBeTreated
-//purpose : Say if the BSpline is rationnal and if the two first and two
+//purpose : Say if the BSpline is rational and if the two first and two
// last weigths are different
//=======================================================================
//! get the Multplicities of the section
Standard_EXPORT virtual void Mults (TColStd_Array1OfInteger& TMults) const Standard_OVERRIDE;
- //! Returns if the section is rationnal or not
+ //! Returns if the section is rational or not
Standard_EXPORT virtual Standard_Boolean IsRational() const Standard_OVERRIDE;
//! Returns the number of intervals for continuity
Standard_EXPORT virtual void SetInterval (const Standard_Real First, const Standard_Real Last) Standard_OVERRIDE;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary (in radian)
//! SurfTol error inside the surface.
//! get the Multplicities of the section
Standard_EXPORT virtual void Mults (TColStd_Array1OfInteger& TMults) const Standard_OVERRIDE;
- //! Returns if the sections are rationnal or not
+ //! Returns if the sections are rational or not
Standard_EXPORT virtual Standard_Boolean IsRational() const Standard_OVERRIDE;
//! Returns if the sections are periodic or not
//! get the Multplicities of the section
Standard_EXPORT virtual void Mults (TColStd_Array1OfInteger& TMults) const Standard_OVERRIDE;
- //! Returns if the sections are rationnal or not
+ //! Returns if the sections are rational or not
Standard_EXPORT virtual Standard_Boolean IsRational() const Standard_OVERRIDE;
//! Returns if the sections are periodic or not
//! get the Multplicities of the section
Standard_EXPORT virtual void Mults (TColStd_Array1OfInteger& TMults) const = 0;
- //! Returns if the sections are rationnal or not
+ //! Returns if the sections are rational or not
Standard_EXPORT virtual Standard_Boolean IsRational() const = 0;
//! Returns if the sections are periodic or not
Standard_EXPORT virtual void Resolution (const Standard_Integer Index, const Standard_Real Tol, Standard_Real& TolU, Standard_Real& TolV) const Standard_OVERRIDE;
//! Returns the tolerance to reach in approximation
- //! to respecte
+ //! to respect
//! BoundTol error at the Boundary
//! AngleTol tangent error at the Boundary (in radian)
//! SurfTol error inside the surface.
//! get the Multplicities of the section
Standard_EXPORT virtual void Mults (TColStd_Array1OfInteger& TMults) const Standard_OVERRIDE;
- //! Returns if the sections are rationnal or not
+ //! Returns if the sections are rational or not
Standard_EXPORT virtual Standard_Boolean IsRational() const Standard_OVERRIDE;
//! Returns if the sections are periodic or not
//function : CanBeTreated
//purpose : indicates if the surface can be treated(if the conditions are
// filled) and need to be treated(if the surface hasn't been yet
-// treated or if the surface is rationnal and non periodic)
+// treated or if the surface is rational and non periodic)
//=======================================================================
static Standard_Boolean CanBeTreated(Handle(Geom_BSplineSurface)& BSurf)
DEFINE_STANDARD_ALLOC
- //! Tol is a Tolerance to make the difference between
+ //! Tol is a Tolerance to make the difference between
//! the result plane and the result line.
- //! if POption = 1 : automatical parametrisation
+ //! if POption = 1 : automatic parametrisation
//! if POption = 2 : parametrisation by eigen vectors
//! if NOption = 1 : the average plane is the inertial plane.
//! if NOption = 2 : the average plane is the plane of max. flux.
// the table of sequences Parcont contains all
// parameter of points on curves
// Field myPlateCont contains parameter of points on a plate;
-// it excludes duplicate points and imcompatible zones.
+// it excludes duplicate points and incompatible zones.
// The first part corresponds to verification of compatibility
// and to removal of duplicate points.
//---------------------------------------------------------
gp_Pln aPlnPrp = aPln.Rotated (gp_Ax1 (O,aXVec), M_PI/2.);
// project Line and it's X-axe symmetric one to plane and intersect
- // resulting curve with projection of Basic Curev
+ // resulting curve with projection of Basic Curve
Standard_Real aVmin = RealLast(), aVmax = -aVmin;
Standard_Boolean aNoInt1 = Standard_False, aNoInt2 = Standard_False;
ProjectIntersectAndEstLim (Line, aPln, aBasCurvProj, aVmin, aVmax, aNoInt1);
// the norm (square) of 3.*lambda (d1 - d4)/8.
// either the norm of :
// 3.*(Sqrt(Norme)/3.)*StepSign*(d1-d4)/8.
- // which produces, takin the square :
+ // which produces, taking the square :
// Norme * (d1-d4).SquareMagnitude()/64.
Standard_Real FlecheCourante =
if (Sprintf(aString,"%.17e",aReal) <= 0) //BUC60808
return Standard_False ;
- // Suppress "e+00" and unsignificant 0's
+ // Suppress "e+00" and insignificant 0's
p = strchr(aString,'e');
if (p) {
}
break;
case EINTR:
- buffer += "operation breaked by a signal";
+ buffer += "operation broken by a signal";
extCode = ERR_INTR;
break;
case ENOMEM:
Standard_EXPORT static Standard_Boolean ComputeGeometry (const TopoDS_Vertex& aVertex, gp_Pnt& point, const Handle(Geom_Plane)& aPlane, Standard_Boolean& isOnPlane);
- //! Tryes to get Plane from Face. Returns Surface of Face
+ //! Tries to get Plane from Face. Returns Surface of Face
//! in aSurf. Returns Standard_True and Plane of Face in
//! aPlane in following cases:
//! Face is Plane, Offset of Plane,
if (isLineBreak)
{
- // compute gap for label as parameteric size of sector on circle segment
+ // compute gap for label as parametric size of sector on circle segment
Standard_Real aSectorOfText = theTextWidth / aRadius;
Standard_Real aTextBegin = aParamMid - aSectorOfText * 0.5;
Standard_Real aTextEnd = aParamMid + aSectorOfText * 0.5;
//! - On generic circle in the specified plane.
//! - On generic shape containing geometry that can be measured
//! by diameter dimension: circle wire, circular face, etc.
-//! The anchor point is the location of the left attachement point of
+//! The anchor point is the location of the left attachment point of
//! dimension on the circle.
//! The anchor point computation is processed after dimension plane setting
//! so that positive flyout direction stands with normal of the circle and
aTextWidth += aFont.AdvanceX (aCurrChar, aNextChar);
}
- // formating text position in XOY plane
+ // formatting text position in XOY plane
Standard_Integer aHLabelPos = theLabelPosition & LabelPosition_HMask;
Standard_Integer aVLabelPos = theLabelPosition & LabelPosition_VMask;
Handle(SelectMgr_EntityOwner) own = new SelectMgr_EntityOwner(this,7);
Handle(Select3D_SensitiveSegment) seg;
- // attachement point of the segment linking position to the curve
+ // attachment point of the segment linking position to the curve
gp_Pnt attach;
Standard_Real confusion (Precision::Confusion());
// jfa 24/10/2000 end
}
- // Creation of the segment linking the attachement point with the
+ // Creation of the segment linking the attachment point with the
// position
if ( !attach.IsEqual(myPosition, confusion) )
{
return ;
- // The attachement points are the points themselves that must be
+ // The attachment points are the points themselves that must be
//identical
myFAttach = BRep_Tool::Pnt(FVertex);
mySAttach = myFAttach;
if (numedge == 1) myExtShape = 2;
else myExtShape = 1;
}
- // The attachement points are the point
+ // The attachment points are the point
myFAttach = BRep_Tool::Pnt(V);
mySAttach = myFAttach;
//function : InitOneShapePoints
//purpose : Initialization of two points where dimension layouts
// will be attached
-// Attention: 1) <theShape> can be only the edge in currect implementation
+// Attention: 1) <theShape> can be only the edge in current implementation
// 2) No length for infinite edge
//=======================================================================
Standard_Boolean PrsDim_LengthDimension::InitOneShapePoints (const TopoDS_Shape& theShape)
//! - On generic circle with user-defined anchor point on that circle.
//! - On generic shape containing geometry that can be measured
//! by diameter dimension: circle wire, arc, circular face, etc.
-//! The anchor point is the location of left attachement point of
+//! The anchor point is the location of left attachment point of
//! dimension on the circle. It can be user-specified, or computed as
//! middle point on the arc. The radius dimension always lies in the
//! plane of the measured circle. The dimension is considered as
//! Returns STEP entity of the (sub)type of RepresentationItem
- //! which is a result of the tranalation of the Shape, or Null if
+ //! which is a result of the translation of the Shape, or Null if
//! no result is recorded
Standard_EXPORT static Handle(StepRepr_RepresentationItem) FindEntity (const Handle(Transfer_FinderProcess)& FinderProcess, const TopoDS_Shape& Shape);
//! Returns Shape resulting from given STEP entity (Null if not mapped)
Standard_EXPORT static TopoDS_Shape FindShape (const Handle(Transfer_TransientProcess)& TransientProcess, const Handle(StepRepr_RepresentationItem)& item);
- //! Find CDSR correcponding to the component in the specified assembly
+ //! Find CDSR corresponding to the component in the specified assembly
Standard_EXPORT static Standard_Boolean FindCDSR (const Handle(Transfer_Binder)& ComponentBinder, const Handle(StepShape_ShapeDefinitionRepresentation)& AssemblySDR, Handle(StepShape_ContextDependentShapeRepresentation)& ComponentCDSR);
};
//Handle(StepBasic_ProductDefinitionWithAssociatedDocuments) PDWAD =
// Handle(StepBasic_ProductDefinitionWithAssociatedDocuments)::DownCast(PD);
- // searh in graph for replace
+ // search in graph for replace
// Standard_Integer numProdDef;
// Interface_EntityIterator subs = Graph().Shareds(SDR);
// for (subs.Start(); subs.More(); subs.Next()) {
// create new product definition formation
Handle(StepBasic_ProductDefinitionFormation) PDF = new StepBasic_ProductDefinitionFormation;
- // name id taked from example Standard_ExtString_ref_master.stp
+ // name id taken from example Standard_ExtString_ref_master.stp
Handle(TCollection_HAsciiString) PDF_ID = new TCollection_HAsciiString("1");
PDF->Init( PDF_ID, EmptyString, Product );
protected:
- //! Create a new additional structure entities and add ncessary references
+ //! Create a new additional structure entities and add necessary references
//! Note: do not refer from ADR to DF directly in AP214 (TRJ11).
Standard_EXPORT Standard_Boolean addAP214ExterRef (const Handle(StepAP214_AppliedDocumentReference)& ADR, const Handle(StepBasic_ProductDefinition)& PD, const Handle(StepBasic_DocumentFile)& DF, const Standard_CString filename);
Standard_Boolean& isArea,
const StepData_Factors& theLocalFactors = StepData_Factors()) const;
- //! Returns value of Centriod property (or False if it is not)
+ //! Returns value of Centroid property (or False if it is not)
Standard_EXPORT Standard_Boolean GetPropPnt (const Handle(StepRepr_RepresentationItem)& item,
const Handle(StepRepr_RepresentationContext)& Context,
gp_Pnt& Pnt,
NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>& ChangeEntities() { return myEntities; }
//! Returns the flag UpdateFlag.
- //! This flage gives the update status of this framework
+ //! This flag gives the update status of this framework
//! in a ViewerSelector object:
//! - full
//! - partial, or
//! Picks the sensitive entity according to the input axis.
//! This is geometric intersection 3D objects by axis
- //! (camera parameters are ignored and objects with transform persistance are skipped).
+ //! (camera parameters are ignored and objects with transform persistence are skipped).
Standard_EXPORT void Pick (const gp_Ax1& theAxis,
const Handle(V3d_View)& theView);
mySplitValues->SetValue(mySplitValues->Length(),Last);
}
- // PTV 20.12.2001 Try to simpify BSpline Curve
+ // PTV 20.12.2001 Try to simplify BSpline Curve
ShapeCustom_Curve2d::SimplifyBSpline2d (aBSpline2d, Precision::Approximation());
Geom2dConvert_BSplineCurveToBezierCurve tool(aBSpline2d,First,Last,precision);
}
isDone = aRebuild;
- //Removing location from sub-shapes in dependance of LevelRemoving and re-building shape.
+ //Removing location from sub-shapes in dependence of LevelRemoving and re-building shape.
if(!isBound) {
if(!aRebuild)
NCollection_IndexedDataMap<TCollection_AsciiString, Standard_DumpValue>& theValues);
- //! Returns key of json in the index position. Incement the index position to the next symbol in the row
+ //! Returns key of json in the index position. Increment the index position to the next symbol in the row
Standard_EXPORT static Standard_Boolean jsonKey (const TCollection_AsciiString& theStreamStr,
Standard_Integer theStartIndex,
Standard_Integer& theNextIndex,
// lock the stack
GetMutex().Lock();
- // Find the current ErrorHandler Accordin tread
+ // Find the current ErrorHandler according to thread
Standard_ErrorHandler* aPrevious = 0;
Standard_ErrorHandler* aCurrent = Top;
Standard_ErrorHandler* anActive = 0;
/* In the allocated block, first bytes are used for storing of memory manager's data.
(size of block). The minimal size of these data is sizeof(int).
The memory allocated in system usually aligned by 16 bytes. The alignment of the
- data area in the memory block is shfted on BLOCK_SHIFT*sizeof(Standard_Size)
+ data area in the memory block is shifted on BLOCK_SHIFT*sizeof(Standard_Size)
bytes.
It is OK for WNT, SUN and Linux systems, but on SGI alignment should be 8 bytes.
So, BLOCK_SHIFT is formed as macro for support on other possible platforms.
//! forgotten attribute is also flagged not "Valid".
//!
//! A forgotten attribute is invisible. Set also the
- //! "Valid" status to False. Obvioulsy, DF cannot
+ //! "Valid" status to False. Obviously, DF cannot
//! empty an attribute (this has a semantic
//! signification), but can remove it from the
//! structure. So, a forgotten attribute is NOT an empty
//! Launches a new command. This command may be undone.
Standard_EXPORT void NewCommand();
- //! returns True if a Command transaction is open in the curret .
+ //! returns True if a Command transaction is open in the current .
Standard_EXPORT Standard_Boolean HasOpenCommand() const;
//! Opens a new command transaction in this document.
//! Fills a TopOpeBRepDS_DataStructure with Edge/Edge
-//! instersection data described by TopOpeBRep_EdgesIntersector.
+//! intersection data described by TopOpeBRep_EdgesIntersector.
class TopOpeBRep_EdgesFiller
{
public:
Standard_Boolean EdgesIntersector_checkT1D(const TopoDS_Edge& E1,const TopoDS_Edge& E2,const TopoDS_Vertex& vG,
TopOpeBRepDS_Transition& newT)
//------------------------------------------------------------------------
- // E1 sdm E2, interfers with E2 at vertex vG
+ // E1 sdm E2, interferes with E2 at vertex vG
// vG is vertex of E2, but not vertex of E1
// purpose : get newT / attached to E1, I1d=(newT(E2),G,E2)
{
//! Fills a DataStructure from TopOpeBRepDS with the result
-//! of Face/Face instersection described by FacesIntersector from TopOpeBRep.
+//! of Face/Face intersection described by FacesIntersector from TopOpeBRep.
//! if the faces have same Domain, record it in the DS.
//! else record lines and points and attach list of interferences
//! to the faces, the lines and the edges.
class TopOpeBRepTool_ShapeExplorer;
-//! Find, among the subshapes SS of a reference shape
-//! RS, the ones which 3D box interfers with the box of
+//! Find, among the subshapes SS of a reference shape
+//! RS, the ones which 3D box interferes with the box of
//! a shape S (SS and S are of the same type).
class TopOpeBRep_ShapeScanner
{
const TopoDS_Edge& E,
TopOpeBRepDS_PDataStructure& pDS2d)
// purpose : compute new face/face interferences F FTRA,
-// {I = (T(F),ES,FTRA)} / Fsdm F and ES interfers with E which has splits ON
+// {I = (T(F),ES,FTRA)} / Fsdm F and ES interferes with E which has splits ON
// E is edge of F
{
const TopOpeBRepDS_DataStructure& BDS = BU.DataStructure()->DS();
return myIsDone;
}
- //! Using the list of internal edge from each face,
- //! rebuild myShape by removing thoses edges.
+ //! Using the list of internal edges from each face,
+ //! rebuild myShape by removing those edges.
Standard_EXPORT void Perform();
protected:
// tol2d = 1.e-2*(lowest distance (p2df,p2dl) between all non-closed
// and non-degenerated pcurves seen during the regularization).
// This value is updated in method chkp2dFORinE.
- // The comparision of p2d points is coupled with comparision of vertices
+ // The comparison of p2d points is coupled with comparison of vertices
// We should in fact use bounding boxes on pcurves but this is too expensive!!!
mytol2d = 1.e-5;
isinit0 = Standard_True;
//! of Levels Of Detail (LOD), from highest detail to lowest.
//!
//! The specified center point of the LOD is transformed by current
-//! transformation into world space, and yhe distancefrom the transformed
+//! transformation into world space, and the distance from the transformed
//! center to the world-space eye point is calculated.
//! If thedistance is less than the first value in the ranges array,
//! than the first child of the LOD group is drawn. If between
const Standard_Integer NbP,
const Standard_Real U1,
const Standard_Real U2,
- const Handle(VrmlConverter_Drawer)& aDrawer, // for passsing of LineAspect
+ const Handle(VrmlConverter_Drawer)& aDrawer, // for passing of LineAspect
Standard_OStream& anOStream)
{
Standard_Integer nbintervals = 1, i;
const Standard_Real TheDeflection,
const Standard_Real U1,
const Standard_Real U2,
- const Handle(VrmlConverter_Drawer)& aDrawer, // for passsing of LineAspect
+ const Handle(VrmlConverter_Drawer)& aDrawer, // for passing of LineAspect
Standard_OStream& anOStream)
{
Standard_Integer i;
puts "========"
puts ""
##########################################################################
-# transormations for few entities with type 144 are missing
+# transformations for a few entities with type 144 are missing
##########################################################################
igesbrep [locate_data_file bug29391.igs] a *
set info_good [tricheck result]
if { [string compare $info_good "" ] != 0 } {
- puts "Error : something wierd has been produced, like free nodes, or links"
+ puts "Error : something weird has been produced, like free nodes, or links"
}
checktrinfo result -tri 65 -nod 67
-puts "TODO OCC12345 ALL: Faulty : the distanse is"
+puts "TODO OCC12345 ALL: Faulty : the distance is"
puts "TODO OCC12345 ALL: Error : The length of result shape is"
puts "====================================="
regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} [maxtolerance $ver] full toler
if {$dist > $toler} {
- puts "Faulty : the distanse is $dist. It is more $toler."
+ puts "Faulty : the distance is $dist. It is more $toler."
}
checkprops result -l 0
checkshape result
-puts "TODO OCC12345 ALL: Faulty : the distanse is"
+puts "TODO OCC12345 ALL: Faulty : the distance is"
puts "TODO OCC12345 ALL: Error : The length of result shape is"
puts "================"
regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} [ maxtolerance $ver ] full toler
if { [expr $dist > $toler] } {
- puts "Faulty : the distanse is $dist. It is more $toler."
+ puts "Faulty : the distance is $dist. It is more $toler."
}
checkprops result -l 0
pcurve p4 a_4 a
pcurve p5 a_5 a
-# Recieve an output strings of the intersection operation
+# Receive an output strings of the intersection operation
set inter1 [2dintersect p4 p5 -tol 1.e-7]
set inter2 [2dintersect p5 p4 -tol 1.e-7]
# Check that the normal directions have been preserved.
# Both input faces faces have normals
# directed strictly to the top (0, 0, 1). So, it is necessary to check
-# that the reuslting face has the same normal direction.
+# that the resulting face has the same normal direction.
if {![regexp "(0, 0, 100)" [normals result -length 100 -print]]} {
puts "Error: the orientation is changed"
foreach data ${expected} {
if ![regexp $data $output] {
- puts "Error: Not cleanned all trinfo in '$data'"
+ puts "Error: Not cleaned all trinfo in '$data'"
break;
}
}
testwritestep ${step_file} tor
stepread ${step_file} a *
-# Cheking the face of the torus
+# Checking the face of the torus
explode a_1 f
renamevar a_1_1 result
checkshape result
puts "=========="
#############################################################################
-## There is wrong tolerance after reading of the model in optimize mode (C30). Retrieve entity number 2139 from file
-## "bm4_db_punch_a.stp" and will obtaine tolerance. It is very big and isolains extend from entity.
+## There is wrong tolerance after reading the model in optimize mode (C30). Retrieve entity number 2139 from file
+## "bm4_db_punch_a.stp" and will obtain tolerance. It's very big and isolates extend from entity.
#############################################################################
stepread [locate_data_file bm4_db_punch_a.stp] a *
puts "============"
puts ""
#####################################################
-## Invalid resut shell after command fixshell in DRAW with non-manifold mode
+## Invalid result shell after command fixshell in DRAW with non-manifold mode
#####################################################
pload QAcommands
if {$lengthunit_start != ""} {
puts $fd_stream ""
- puts $fd_stream "# set $lengthunit_start as local lenght unit"
+ puts $fd_stream "# set $lengthunit_start as local length unit"
puts $fd_stream "set lengthunit_start \"$lengthunit_start\""
}
###############################
puts "##############################"
-puts "#!!!Searh \"Attention\" keyword on this web-page for additinal checking!!!"
+puts "#!!!Search \"Attention\" keyword on this web-page for additional checking!!!"
puts "##############################"
restore [locate_data_file bug24915_ft2.brep] b1
# checkshape su2
if [catch {intersect result su1 su2} catch_result] {
- puts "Faulty OCC504 : A solution takes all memory and crach with AllocMemory"
+ puts "Faulty OCC504 : A solution takes all memory and crashes with AllocMemory"
} else {
puts "OCC504 OK: function intersection works ok"
}
thickshell result a 1 i
if { [isdraw result] } {
- puts "ERROR - result must not be buit"
+ puts "ERROR - result must not be built"
}
puts "========"
-puts "bug32809: Sweep algorithm with Round Corner doesnot work"
+puts "bug32809: Sweep algorithm with Round Corner does not work"
puts "========"
puts ""
set z3 0
set z4 100
-# begining vertex
+# beginning vertex
vertex v4 55 2.5 ${z4}
# ending vertex
vertex v5 55 2.5 -${z4}
set z3 0
set z4 100
-# begining vertex
+# beginning vertex
vertex v4 55 2.5 ${z4}
# ending vertex
vertex v5 55 2.5 -${z4}
set z3 0
set z4 100
-# begining vertex
+# beginning vertex
vertex v4 55 2.5 ${z4}
# ending vertex
vertex v5 55 2.5 -${z4}
set z3 0
set z4 100
-# begining vertex
+# beginning vertex
vertex v4 2.5 5 ${z4}
# ending vertex
vertex v5 2.5 5 -${z4}
set z3 0
set z4 100
-# begining vertex
+# beginning vertex
vertex v4 2.5 5 ${z4}
# ending vertex
vertex v5 2.5 5 -${z4}
set z3 0
set z4 100
-# begining vertex
+# beginning vertex
vertex v4 2.5 5 ${z4}
# ending vertex
vertex v5 2.5 5 -${z4}
set z5 30
set z6 10
-# begining vertex
+# beginning vertex
vertex v4 55 2.5 ${z4}
# ending vertex
vertex v5 55 2.5 -${z4}
set z5 30
set z6 10
-# begining vertex
+# beginning vertex
vertex v4 2.5 5 ${z4}
# ending vertex
vertex v5 2.5 5 -${z4}
puts "================"
-puts "OCC22795: Make possible to display some presentable objecys in overlay of others, groupped by display priority "
+puts "OCC22795: Makes it possible to display some presentable objects in overlay of others, grouped by display priority "
puts "================"
puts ""
puts "Test includes comparing for $CompareDocumentsMode"
-############## INIZIALIZING OF VARIABLES #################################
+############## INITIALIZING OF VARIABLES #################################
# ========== variables for comparison ======================
# Checkshape
set Checkshape_Second **
//! \class DFBrowserPane_AttributePaneModel
//! \brief This is an extension of table model to visualize a container of values
//! It is possible to:
-//! - set orientation to interpretate the values.
+//! - set orientation to interpret the values.
//! - set table view header values.
//! Items of the view are enabled and selectable.
class DFBrowserPane_AttributePaneModel : public QAbstractTableModel
//! Returns true if report exists is in the list of the current reports
//! \param theReport a report instance
- //! \return boolen value
+ //! \return boolean value
Standard_EXPORT Standard_Boolean HasReport (const Handle(Message_Report)& theReport);
//!< Returns processed reports
//! Returns true if parameter report was added into the model
//! \param theReport a report instance
- //! \return boolen value
+ //! \return boolean value
Standard_EXPORT Standard_Boolean HasReport (const Handle(Message_Report)& theReport);
//! Add shape, append it to the model root item
Standard_EXPORT const NCollection_List<MessageModel_ReportInformation>& Reports() const;
//! Sets the text value of the Root item, only "Name" column accepts the parameter value
- //! \theName visulized text of root item
+ //! \theName visualized text of root item
Standard_EXPORT void SetRootItemName (const TCollection_AsciiString& theName);
//! Updates tree model
//! metric time spent on the alert and its children.
//! It visualizes a table with statistic information:
//! the 1st column is alert name, the 2nd column is a counter of the name appearance,
-//! the 3rd column is the cummulative time.
+//! the 3rd column is the cumulative time.
//! Tables rows are sorted by descending time.
class MessageView_MetricStatisticModel : public QAbstractTableModel
{
//! It returns value only for DisplayRole
//! \param theIndex a model index
//! \param theRole a view role
- //! \return value intepreted depending on the given role
+ //! \return value interpreted depending on the given role
Standard_EXPORT virtual QVariant data (const QModelIndex& theIndex, int theRole = Qt::DisplayRole) const Standard_OVERRIDE;
//! Returns number of rows
//! Sets visibility state
//! \theIndex tree model index
//! \param theState visibility state
- //! \param toEmitDataChanged boolean flag whether emit of the model should be done immediatelly
+ //! \param toEmitDataChanged boolean flag whether emit of the model should be done immediately
//! \return true if state is changed
Standard_EXPORT virtual bool SetVisible (const QModelIndex& theIndex, const bool theState, const bool toEmitDataChanged) Standard_OVERRIDE;
//! \param theItem container of preference elements
Standard_EXPORT void SetPreferences (const TInspectorAPI_PreferencesDataMap& theItem);
- //! Applyes parameters to Init controls, opens files if there are in parameters, updates OCAF tree view model
+ //! Applies parameters to Init controls, opens files if there are in parameters, updates OCAF tree view model
Standard_EXPORT void UpdateContent();
//! Returns main control
//! \param theIndex tree view model index
void onTreeViewVisibilityClicked(const QModelIndex& theIndex);
- //! Udpates all controls by changed selection in OCAF tree view
+ //! Updates all controls by changed selection in OCAF tree view
//! \param theSelected list of selected tree view items
//! \param theDeselected list of deselected tree view items
void onTreeViewSelectionChanged (const QItemSelection& theSelected, const QItemSelection& theDeselected);
protected slots:
- //! Activates plugin correspnded to the clicked button
+ //! Activates plugin corresponded to the clicked button
void onButtonClicked();
//! Updates available actions by the active plugin
virtual ~View_DisplayPreview() {}
//! Stores the current context where the presentations will be displayed/erased.
- //! Erases previuously displayed presentations if there were some displayed
+ //! Erases previously displayed presentations if there were some displayed
//! \param theContext a context instance
Standard_EXPORT void SetContext (const Handle(AIS_InteractiveContext)& theContext);
View_DisplayPreview* DisplayPreview() const { return myDisplayPreview; }
//! Stores the current context where the presentations will be displayed/erased.
- //! Erases previuously displayed presentations if there were some displayed
+ //! Erases previously displayed presentations if there were some displayed
//! \param theContext a context instance
Standard_EXPORT void SetContext (const Handle(AIS_InteractiveContext)& theContext);
return QVariant();
}
- //! Sets content of the model index for the given role, it is applyed to internal container of values
+ //! Sets content of the model index for the given role, it is applied to internal container of values
//! \param theRow a model index row
//! \param theColumn a model index column
//! \param theRole a view role
return true;
}
- //! Returns number of tree level line items = colums in table view
+ //! Returns number of tree level line items = columns in table view
virtual int ColumnCount (const QModelIndex& theParent = QModelIndex()) const Standard_OVERRIDE
{ (void)theParent; return 2; }
- //! Returns onlly one row in table view
+ //! Returns only one row in table view
virtual int RowCount (const QModelIndex& theParent = QModelIndex()) const Standard_OVERRIDE
{ (void)theParent; return 7; }
//! Returns item information(short) for display role.
//! \param theIndex a model index
//! \param theRole a view role
- //! \return value intepreted depending on the given role
+ //! \return value interpreted depending on the given role
Standard_EXPORT virtual QVariant data (const QModelIndex& theIndex,
int theRole = Qt::DisplayRole) const Standard_OVERRIDE
{
virtual int columnCount (const QModelIndex& theParent = QModelIndex()) const Standard_OVERRIDE
{ (void)theParent; return 26; }
- //! Returns onlly one row in table view
+ //! Returns only one row in table view
virtual int rowCount (const QModelIndex& theParent = QModelIndex()) const Standard_OVERRIDE
{ (void)theParent; return 20; }
Quantity_NameOfColor& theColorName);
private:
- //! Returns symbol used as a separtor of color components in string conversion
+ //! Returns symbol used as a separator of color components in string conversion
//! \return symbol value
static QString ColorSeparator() { return ";"; }