Fix various typos via codespell.
// commercial license or contractual agreement.
//=========================================================================
-// CREATION of the BISSECTICE between a CIRCLE and a STRAIGHT LINE. +
+// CREATION of the BISSECTICE between a CIRCLE and a STRAIGHT LINE. +
//=========================================================================
#include <GccAna_CircLin2dBisec.hxx>
{
//=========================================================================
-// Initialization of fields : +
-// - circle +
-// - line (straight line.) +
+// Initialization of fields : +
+// - circle +
+// - line (straight line.) +
// - NbrSol (number of solution.) +
-// - WellDone (Booleen showing success or failure of algorithm). +
+// - WellDone (Boolean showing success or failure of algorithm)+
//=========================================================================
NbrSol = 2;
//=========================================================================
// Processing. +
-// Return coordinates of origins of the straight line (xloc,yloc) and the +
-// circle (xcencir, ycencir). +
-// Also return the coordinates of the direction of the straight line (xdir, +
-// ydir) and the radius of circle R1. +
-// Check at which side of the straight line is found the center of the circle +
-// to orientate the parabola (sign). +
-// Create axis of each parabola (axeparab1, axeparb2), then +
-// two parabolas (biscirlin1, biscirlin1). +
+// Return coordinates of origins of the straight line (xloc,yloc) and +
+// the circle (xcencir, ycencir). +
+// Also return the coordinates of the direction of the straight line +
+// (xdir, ydir) and the radius of circle R1. +
+// Check at which side of the straight line is found the center of the +
+// circle to orientate the parabola (sign). +
+// Create axis of each parabola (axeparab1, axeparb2), then +
+// two parabolas (biscirlin1, biscirlin1). +
//=========================================================================
Handle(GccInt_Bisec) GccAna_CircLin2dBisec::
//=======================================================================
//function : PrintProps
-//purpose : auxilary for FreeBoundsProps
+//purpose : auxiliary for FreeBoundsProps
//=======================================================================
static void PrintProps(Standard_Integer i,
const Handle(ShapeAnalysis_FreeBoundData)& fbd,
Standard_Integer nb = analyzer.NbClosedFreeBounds();
di<<"\n";
- di<<" \tArea mm2\tLength mm\tRatio L/W\tWidth mm\tNb noth\n";
+ di<<" \tArea mm2\tLength mm\tRatio L/W\tWidth mm\tNb notch\n";
B.MakeCompound(closed);
if (nb) {
di<<"Closed bounds properties\n";
// orientation of the surface => the underlying topological
// orientation are not implicitly reversed
// this is the case in CAS.CADE => If the face_surface is reversed,
- // the wire orientation has to be explictly reversed
+ // the wire orientation has to be explicitly reversed
if (FaceBound->Orientation()) {
// *DTH* if (sameSense || GeomSurf->IsKind(STANDARD_TYPE(Geom_Plane)))
W.Orientation(sameSense ? TopAbs_FORWARD : TopAbs_REVERSED);
#include <Standard_OutOfRange.hxx>
-// The array of prime numbers used as consequtive steps for
+// The array of prime numbers used as consecutive steps for
// size of array of buckets in the map.
// The prime numbers are used for array size with the hope that this will
// lead to less probablility of having the same hash codes for
Standard_EXPORT TCollection_AsciiString(const Standard_Character aChar);
//! Initializes an AsciiString with <length> space allocated.
- //! and filled with <filler>. This is usefull for buffers.
+ //! and filled with <filler>. This is useful for buffers.
Standard_EXPORT TCollection_AsciiString(const Standard_Integer length, const Standard_Character filler);
//! Initializes an AsciiString with an integer value
Standard_EXPORT TCollection_AsciiString(const TCollection_AsciiString& astring, const TCollection_AsciiString& message);
//! Creation by converting an extended string to an ascii string.
- //! If replaceNonAscii is non-null charecter, it will be used
+ //! If replaceNonAscii is non-null character, it will be used
//! in place of any non-ascii character found in the source string.
//! Otherwise, creates UTF-8 unicode string.
Standard_EXPORT TCollection_AsciiString(const TCollection_ExtendedString& astring, const Standard_Character replaceNonAscii = 0);
//! Substitutes all the characters equal to aChar by NewChar
//! in the AsciiString <me>.
//! The substitution can be case sensitive.
- //! If you don't use default case sensitive, no matter wether aChar
+ //! If you don't use default case sensitive, no matter whether aChar
//! is uppercase or not.
//! Example: me = "Histake" -> ChangeAll('H','M',Standard_True)
//! gives me = "Mistake"
//! This means no control character and no extended ASCII code.
Standard_EXPORT Standard_Boolean IsAscii() const;
- //! Removes all space characters in the begining of the string.
+ //! Removes all space characters in the beginning of the string.
Standard_EXPORT void LeftAdjust();
//! left justify
//! of this string by its position.
Standard_Integer Length() const;
- //! Returns an index in the string <me> of the first occurence
+ //! Returns an index in the string <me> of the first occurrence
//! of the string S in the string <me> from the starting index
//! FromIndex to the ending index ToIndex
//! returns zero if failure
//! 4
Standard_EXPORT Standard_Integer Location (const TCollection_AsciiString& other, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const;
- //! Returns the index of the nth occurence of the character C
+ //! Returns the index of the nth occurrence of the character C
//! in the string <me> from the starting index FromIndex to the
//! ending index ToIndex.
//! Returns zero if failure.
//! ex: "3.14159267" returns 3.14159267.
Standard_EXPORT Standard_Real RealValue() const;
- //! Remove all the occurences of the character C in the string.
+ //! Remove all the occurrences of the character C in the string.
//! Example:
//! before
//! me = "HellLLo", C = 'L' , CaseSensitive = True
Standard_EXPORT Standard_Integer UsefullLength() const;
//! Returns character at position <where> in <me>.
- //! If <where> is less than zero or greater than the lenght of <me>,
+ //! If <where> is less than zero or greater than the length of <me>,
//! an exception is raised.
//! Example:
//! aString contains "Hello"
//! Substitutes all the characters equal to aChar by NewChar
//! in the ExtendedString <me>.
//! The substitution can be case sensitive.
- //! If you don't use default case sensitive, no matter wether aChar
- //! is uppercase or not.
+ //! If you don't use default case sensitive, no matter whether aChar is uppercase or not.
Standard_EXPORT void ChangeAll (const Standard_ExtCharacter aChar, const Standard_ExtCharacter NewChar);
//! Removes all characters contained in <me>.
Standard_EXPORT void Trunc (const Standard_Integer ahowmany);
//! Returns character at position <where> in <me>.
- //! If <where> is less than zero or greater than the lenght of
+ //! If <where> is less than zero or greater than the length of
//! <me>, an exception is raised.
//! Example:
//! aString contains "Hello"
private:
- //! Returns true if the input CString was successfuly converted
- //! to UTF8 coding
+ //! Returns true if the input CString was successfully converted to UTF8 coding.
Standard_EXPORT Standard_Boolean ConvertToUnicode (const Standard_CString astring);
private:
Standard_EXPORT TCollection_HAsciiString(const Handle(TCollection_HAsciiString)& aString);
//! Initializes a HAsciiString with a HExtendedString.
- //! If replaceNonAscii is non-null charecter, it will be used
+ //! If replaceNonAscii is non-null character, it will be used
//! in place of any non-ascii character found in the source string.
//! Otherwise, creates UTF-8 unicode string.
Standard_EXPORT TCollection_HAsciiString(const Handle(TCollection_HExtendedString)& aString, const Standard_Character replaceNonAscii);
//! string <me>.
Standard_EXPORT Standard_Boolean IsSameString (const Handle(TCollection_HAsciiString)& S, const Standard_Boolean CaseSensitive) const;
- //! Removes all space characters in the begining of the string
+ //! Removes all space characters in the beginning of the string
Standard_EXPORT void LeftAdjust();
//! Left justify.
//! This is the same functionality as 'strlen' in C.
Standard_Integer Length() const;
- //! returns an index in the string <me> of the first occurence
+ //! returns an index in the string <me> of the first occurrence
//! of the string S in the string <me> from the starting index
//! FromIndex to the ending index ToIndex
//! returns zero if failure
//! 4
Standard_EXPORT Standard_Integer Location (const Handle(TCollection_HAsciiString)& other, const Standard_Integer FromIndex, const Standard_Integer ToIndex) const;
- //! Returns the index of the nth occurence of the character C
+ //! Returns the index of the nth occurrence of the character C
//! in the string <me> from the starting index FromIndex to the
//! ending index ToIndex.
//! Returns zero if failure.
//! Converts <me> to its lower-case equivalent.
Standard_EXPORT void LowerCase();
- //! Inserts the other string at the begining of the string <me>
+ //! Inserts the other string at the beginning of the string <me>
//! Example:
//! before
//! me = "cde" , S = "ab"
//! "3.14159267" returns 3.14159267.
Standard_EXPORT Standard_Real RealValue() const;
- //! Remove all the occurences of the character C in the string
+ //! Remove all the occurrences of the character C in the string
//! Example:
//! before
//! me = "HellLLo", C = 'L' , CaseSensitive = True
Standard_EXPORT Standard_Integer UsefullLength() const;
//! Returns character at position <where> in <me>.
- //! If <where> is less than zero or greater than the lenght of
+ //! If <where> is less than zero or greater than the length of
//! <me>, an exception is raised.
//! Example:
//! aString contains "Hello"
Standard_EXPORT TCollection_HExtendedString(const Standard_ExtCharacter aChar);
//! Initializes a HExtendedString with <length> space allocated.
- //! and filled with <filler>.This is usefull for buffers.
+ //! and filled with <filler>. This is useful for buffers.
Standard_EXPORT TCollection_HExtendedString(const Standard_Integer length, const Standard_ExtCharacter filler);
//! Initializes a HExtendedString with a HExtendedString.
//! features and data structures.
//!
//! The feature structure is a tree used to bind
-//! semantic informations about each feature together.
+//! semantic information about each feature together.
//!
//! The only one concrete attribute defined in this
//! package is the TagSource attribute.This attribute
throw Standard_DomainError("Impossible to remove a nonexistent backup.");
#endif
myBackup->BeforeRemoval();
- myBackup->myLabelNode = NULL; // Absolutly necessary!
- myBackup->myNext.Nullify(); // Absolutly necessary!
+ myBackup->myLabelNode = NULL; // Absolutely necessary!
+ myBackup->myNext.Nullify(); // Absolutely necessary!
myBackup = myBackup->myBackup;
if (!myBackup.IsNull()) myBackup->myNext = this; // New back reference.
}
//!
//! An attribute can be identified by its ID. Every
//! attributes used with the same meaning (for
-//! exemple: Integer, String, Topology...) have the
+//! example: Integer, String, Topology...) have the
//! same worldwide unique ID.
//!
//! Addition:
//! algorithms. The goal of "Paste" is to transfer an
//! attribute new contents into another attribute. The
//! goal of "NewEmpty" is to create an attribute
-//! whithout contents, to be further filled with the
+//! without contents, to be further filled with the
//! new contents of another one. These 2 methods must
//! be implemented by end use inheriting classes.
//!
Standard_EXPORT void AddAttribute (const Handle(TDF_Attribute)& other) const;
//! Forgets the Attribute of GUID <aguid> associated
- //! to the label of <me>. Be carefull that if <me> is
+ //! to the label of <me>. Be careful that if <me> is
//! the attribute of <guid>, <me> will have a null label
//! after this call. If the attribute doesn't exist
//! returns False. Otherwise returns True.
//! of <me>. Does it on the sub-labels if
//! <clearChildren> is set to true. Of course, this
//! method is compatible with Transaction & Delta
- //! mecanisms. Be carefull that if <me> will have a
+ //! mechanisms. Be careful that if <me> will have a
//! null label after this call
Standard_EXPORT void ForgetAllAttributes (const Standard_Boolean clearChildren = Standard_True) const;
class TDF_AttributeDelta;
DEFINE_STANDARD_HANDLE(TDF_AttributeDelta, Standard_Transient)
-//! This class discribes the services we need to
+//! This class describes the services we need to
//! implement Delta and Undo/Redo services.
//!
//! AttributeDeltas are applied in an unpredictable
// up-to-date (current) valid attributes of a label.
//
// This class should not be used for standard attributes workflow.
-// Application allways knows what to search at particular label.
-// So, use IsAttribute and FindAttibute methods of
+// Application always knows what to search at particular label.
+// So, use IsAttribute and FindAttribute methods of
// TDF_Label to check and get attributes in usual way.
// This class may be used for processing of content of labels
// in generic way, like copy-tool, specific save/restore algorithms,
DEFINE_STANDARD_ALLOC
- //! Creates an objet with all modes set to <aMode>.
+ //! Creates an object with all modes set to <aMode>.
Standard_EXPORT TDF_ClosureMode(const Standard_Boolean aMode = Standard_True);
//! Sets the mode "Descendants" to <aStatus>.
//=======================================================================
//function : Closure
-//purpose : Builds the transitive closure whithout attribute filter.
+//purpose : Builds the transitive closure without attribute filter.
//=======================================================================
void TDF_ClosureTool::Closure
//! information. The use of this tool can works after
//! a copy, acted by a CopyTool.
//!
-//! * Compare(...) compares two DataSet and returns
-//! the result.
+//! * Compare(...) compares two DataSet and returns the result.
//!
//! * SourceUnbound(...) builds the difference between
-//! a relocation dictionnary and a source set of
-//! information.
+//! a relocation dictionary and a source set of information.
//!
//! * TargetUnbound(...) does the same between a
-//! relocation dictionnary and a target set of
-//! information.
+//! relocation dictionary and a target set of information.
//!
-//! * Cut(aDataSet, anLabel) removes a set of
-//! attributes.
+//! * Cut(aDataSet, anLabel) removes a set of attributes.
//!
//! * IsSelfContained(...) returns true if all the
//! labels of the attributes of the given DataSet are
class TDF_Data;
DEFINE_STANDARD_HANDLE(TDF_Data, Standard_Transient)
-//! This class is used to manipulate a complete
-//! independant, self sufficient data structure and
-//! its services:
+//! This class is used to manipulate a complete independent,
+//! self sufficient data structure and its services:
//!
//! Access to the root label;
//!
//! Generation and use of Delta, depending on the time.
//! This class uses a special allocator
//! (see LabelNodeAllocator() method)
-//! for more efficient allocation of
-//! objects in memory.
+//! for more efficient allocation of objects in memory.
class TDF_Data : public Standard_Transient
{
//! Returns true if <aDelta> is applicable HERE and NOW.
Standard_EXPORT Standard_Boolean IsApplicable (const Handle(TDF_Delta)& aDelta) const;
- //! Apply <aDelta> to undo a set of attribute
- //! modifications.
+ //! Apply <aDelta> to undo a set of attribute modifications.
//!
- //! Optionnal <withDelta> set to True indiquates a
+ //! Optional <withDelta> set to True indicates a
//! Delta Set must be generated. (See above)
Standard_EXPORT Handle(TDF_Delta) Undo (const Handle(TDF_Delta)& aDelta, const Standard_Boolean withDelta = Standard_False);
//!
//! Raises if there is no current transaction.
//!
- //! Optionnal <withDelta> set to True indiquates a
+ //! Optional <withDelta> set to True indicates a
//! Delta must be generated.
Standard_EXPORT Handle(TDF_Delta) CommitTransaction (const Standard_Boolean withDelta = Standard_False);
class TDF_DataSet;
DEFINE_STANDARD_HANDLE(TDF_DataSet, Standard_Transient)
-//! This class is a set of TDF informations like
-//! labels and attributes.
+//! This class is a set of TDF information like labels and attributes.
class TDF_DataSet : public Standard_Transient
{
// The attribute has been modified in the current transaction.
// (It has at least one backup.) We don't restore the previous
// version before forgetting. It may generated a strange behaviour
- // in case of forgetting, commiting, aborting...
+ // in case of forgetting, committing, aborting...
if (fromNode->Data()->NotUndoMode()) anAttribute->BeforeForget();
anAttribute->Forget(fromNode->Data()->Transaction());
}
//! Forgets all the attributes. Does it on also on the
//! sub-labels if <clearChildren> is set to true. Of
//! course, this method is compatible with Transaction
- //! & Delta mecanisms.
+ //! & Delta mechanisms.
Standard_EXPORT void ForgetAllAttributes (const Standard_Boolean clearChildren = Standard_True) const;
//! Undo Forget action, setting its forgotten status
(const Handle(TDF_Attribute)& afterAtt,
const Handle(TDF_Attribute)& oldAtt)
{
- oldAtt->myFlags = 0; // Unvalid.
+ oldAtt->myFlags = 0; // Invalid.
oldAtt->myLabelNode = NULL;
if (afterAtt.IsNull()) { // Removes from beginning.
myFirstAttribute = oldAtt->myNext;
class TDF_RelocationTable;
DEFINE_STANDARD_HANDLE(TDF_RelocationTable, Standard_Transient)
-//! This is a relocation dictionnary between source
+//! This is a relocation dictionary between source
//! and target labels, attributes or any
//! transient(useful for copy or paste actions).
//! Note that one target value may be the
//! explanation about the method behavior)
Standard_EXPORT Standard_Boolean HasTransientRelocation (const Handle(Standard_Transient)& aSourceTransient, Handle(Standard_Transient)& aTargetTransient) const;
- //! Clears the relocation dictionnary, but lets the
+ //! Clears the relocation dictionary, but lets the
//! self relocation flag to its current value.
Standard_EXPORT void Clear();
Standard_EXPORT static void OutReferences (const TDF_Label& aLabel, TDF_AttributeMap& atts);
//! Returns in <atts> the referenced attributes and kept by <aFilterForReferences>.
- //! It considers only the referers kept by <aFilterForReferers>.
+ //! It considers only the referrers kept by <aFilterForReferers>.
//! Caution: <atts> is not cleared before use!
Standard_EXPORT static void OutReferences (const TDF_Label& aLabel, const TDF_IDFilter& aFilterForReferers, const TDF_IDFilter& aFilterForReferences, TDF_AttributeMap& atts);
//! <aLabel> but located as descendant as <toRoot>
//! instead of <fromRoot>.
//!
- //! Exemple :
+ //! Example :
//!
//! aLabel = 0:3:24:7:2:7
//! fromRoot = 0:3:24
//! attributes content.
Standard_EXPORT static void ExtendedDeepDump (Standard_OStream& anOS, const Handle(TDF_Data)& aDF, const TDF_IDFilter& aFilter);
- //! Dumps <aLabel>, its chilren and their attributes.
+ //! Dumps <aLabel>, its children and their attributes.
Standard_EXPORT static void DeepDump (Standard_OStream& anOS, const TDF_Label& aLabel);
- //! Dumps <aLabel>, its chilren and their attributes,
+ //! Dumps <aLabel>, its children and their attributes,
//! if their IDs are kept by <aFilter>. Dumps also the
//! attributes content.
Standard_EXPORT static void ExtendedDeepDump (Standard_OStream& anOS, const TDF_Label& aLabel, const TDF_IDFilter& aFilter);
//! This class offers services to open, commit or
//! abort a transaction in a more secure way than
//! using Data from TDF. If you forget to close a
-//! transaction, it will be automaticaly aborted at
+//! transaction, it will be automatically aborted at
//! the destruction of this object, at the closure of
//! its scope.
//!
// TDF_Label current;
Handle(TDataStd_Current) A;
if (!access.Data()->Root().FindAttribute (TDataStd_Current::GetID(), A)) {
- throw Standard_DomainError("TDataStd_Current::Get : not setted");
+ throw Standard_DomainError("TDataStd_Current::Get : not set");
}
return A->GetLabel();
}
class TDataStd_GenericEmpty;
DEFINE_STANDARD_HANDLE(TDataStd_GenericEmpty, TDF_Attribute)
-//! An ancestor attibute for all attributes which have no fields.
+//! An ancestor attribute for all attributes which have no fields.
//! If an attribute inherits this one it should not have drivers for persistence.
class TDataStd_GenericEmpty : public TDF_Attribute
{
class TDataStd_GenericExtString;
DEFINE_STANDARD_HANDLE(TDataStd_GenericExtString, TDF_Attribute)
-//! An ancestor attibute for all attributes which have TCollection_ExtendedString field.
+//! An ancestor attribute for all attributes which have TCollection_ExtendedString field.
//! If an attribute inherits this one it should not have drivers for persistence.
//! Also this attribute provides functionality to have on the same label same attributes with different IDs.
class TDataStd_GenericExtString : public TDF_Attribute
//! Returns the ID of the named data attribute.
Standard_EXPORT static const Standard_GUID& GetID();
-
+
//! Finds or creates a named data attribute.
Standard_EXPORT static Handle(TDataStd_NamedData) Set (const TDF_Label& label);
//! Empty constructor.
Standard_EXPORT TDataStd_NamedData();
-
+
//! Returns true if at least one named integer value is kept in the attribute.
Standard_Boolean HasIntegers() const { return !myIntegers.IsNull(); }
//! Returns true if the attribute contains specified by Name
//! integer value.
Standard_EXPORT Standard_Boolean HasInteger (const TCollection_ExtendedString& theName) const;
-
+
//! Returns the integer value specified by the Name.
//! It returns 0 if internal map doesn't contain the specified
//! integer (use HasInteger() to check before).
Standard_EXPORT Standard_Integer GetInteger (const TCollection_ExtendedString& theName);
-
+
//! Defines a named integer.
//! If the integer already exists, it changes its value to <theInteger>.
Standard_EXPORT void SetInteger (const TCollection_ExtendedString& theName, const Standard_Integer theInteger);
-
+
//! Returns the internal container of named integers.
Standard_EXPORT const TColStd_DataMapOfStringInteger& GetIntegersContainer();
-
+
//! Replace the container content by new content of the <theIntegers>.
Standard_EXPORT void ChangeIntegers (const TColStd_DataMapOfStringInteger& theIntegers);
//! Returns true if the attribute contains a real specified by Name.
Standard_EXPORT Standard_Boolean HasReal (const TCollection_ExtendedString& theName) const;
-
+
//! Returns the named real.
//! It returns 0.0 if there is no such a named real
//! (use HasReal()).
Standard_EXPORT Standard_Real GetReal (const TCollection_ExtendedString& theName);
-
+
//! Defines a named real.
//! If the real already exists, it changes its value to <theReal>.
Standard_EXPORT void SetReal (const TCollection_ExtendedString& theName, const Standard_Real theReal);
-
+
//! Returns the internal container of named reals.
Standard_EXPORT const TDataStd_DataMapOfStringReal& GetRealsContainer();
-
+
//! Replace the container content by new content of the <theReals>.
Standard_EXPORT void ChangeReals (const TDataStd_DataMapOfStringReal& theReals);
-
+
//! Returns true if there are some named strings in the attribute.
Standard_Boolean HasStrings() const { return !myStrings.IsNull(); }
//! Returns true if the attribute contains this named string.
Standard_EXPORT Standard_Boolean HasString (const TCollection_ExtendedString& theName) const;
-
+
//! Returns the named string.
//! It returns an empty string if there is no such a named string
//! (use HasString()).
Standard_EXPORT const TCollection_ExtendedString& GetString (const TCollection_ExtendedString& theName);
-
+
//! Defines a named string.
//! If the string already exists, it changes its value to <theString>.
Standard_EXPORT void SetString (const TCollection_ExtendedString& theName, const TCollection_ExtendedString& theString);
-
+
//! Returns the internal container of named strings.
Standard_EXPORT const TDataStd_DataMapOfStringString& GetStringsContainer();
-
+
//! Replace the container content by new content of the <theStrings>.
Standard_EXPORT void ChangeStrings (const TDataStd_DataMapOfStringString& theStrings);
-
+
//! Returns true if there are some named bytes in the attribute.
Standard_Boolean HasBytes() const { return !myBytes.IsNull(); }
//! Returns true if the attribute contains this named byte.
Standard_EXPORT Standard_Boolean HasByte (const TCollection_ExtendedString& theName) const;
-
+
//! Returns the named byte.
//! It returns 0 if there is no such a named byte
//! (use HasByte()).
Standard_EXPORT Standard_Byte GetByte (const TCollection_ExtendedString& theName);
-
+
//! Defines a named byte.
//! If the byte already exists, it changes its value to <theByte>.
Standard_EXPORT void SetByte (const TCollection_ExtendedString& theName, const Standard_Byte theByte);
-
+
//! Returns the internal container of named bytes.
Standard_EXPORT const TDataStd_DataMapOfStringByte& GetBytesContainer();
-
+
//! Replace the container content by new content of the <theBytes>.
Standard_EXPORT void ChangeBytes (const TDataStd_DataMapOfStringByte& theBytes);
-
+
//! Returns true if there are some named arrays of integer values in the attribute.
Standard_Boolean HasArraysOfIntegers() const { return !myArraysOfIntegers.IsNull(); }
//! Returns true if the attribute contains this named array of integer values.
Standard_EXPORT Standard_Boolean HasArrayOfIntegers (const TCollection_ExtendedString& theName) const;
-
+
//! Returns the named array of integer values.
//! It returns a NULL Handle if there is no such a named array of integers
//! (use HasArrayOfIntegers()).
//! Returns the internal container of named arrays of integer values.
Standard_EXPORT const TDataStd_DataMapOfStringHArray1OfInteger& GetArraysOfIntegersContainer();
-
+
//! Replace the container content by new content of the <theArraysOfIntegers>.
Standard_EXPORT void ChangeArraysOfIntegers (const TDataStd_DataMapOfStringHArray1OfInteger& theArraysOfIntegers);
-
+
//! Returns true if there are some named arrays of real values in the attribute.
Standard_Boolean HasArraysOfReals() const { return !myArraysOfReals.IsNull(); }
//! Returns true if the attribute contains this named array of real values.
Standard_EXPORT Standard_Boolean HasArrayOfReals (const TCollection_ExtendedString& theName) const;
-
+
//! Returns the named array of real values.
//! It returns a NULL Handle if there is no such a named array of reals
//! (use HasArrayOfReals()).
//! Returns the internal container of named arrays of real values.
Standard_EXPORT const TDataStd_DataMapOfStringHArray1OfReal& GetArraysOfRealsContainer();
-
+
//! Replace the container content by new content of the <theArraysOfReals>.
Standard_EXPORT void ChangeArraysOfReals (const TDataStd_DataMapOfStringHArray1OfReal& theArraysOfReals);
//!
//! Usage scenarios:
//! - Application displays model in read-only way.
- //! Late-load elements are loaded temporarily on demand and immediatly unloaded.
+ //! Late-load elements are loaded temporarily on demand and immediately unloaded.
//! theNamedData->LoadDeferredData (true);
//! TCollection_AsciiString aValue = theNamedData->GetString (theKey);
//! theNamedData->UnloadDeferredData();
virtual Standard_Boolean HasDeferredData() const { return false; }
//! Load data from deferred storage, without calling Backup().
- //! As result, the content of the object will be overidden by data from deferred storage (which is normally read-only).
+ //! As result, the content of the object will be overridden by data from deferred storage (which is normally read-only).
//! @param theToKeepDeferred [in] when TRUE, the link to deferred storage will be preserved
//! so that it will be possible calling UnloadDeferredData() afterwards for releasing memory
//! @return FALSE if deferred storage is unavailable or deferred data has been already loaded
Standard_EXPORT virtual void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const Standard_OVERRIDE;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
-
+
//! Dumps the content of me into the stream
Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
//=======================================================================
//TreeNode : BeforeForget
//purpose : Disconnect the TreeNode from the tree.
-// Backuped attribute is normaly not concerned by such an operation
+// Backuped attribute is normally not concerned by such an operation
//=======================================================================
void TDataStd_TreeNode::BeforeForget() {
//! ===================================
Standard_EXPORT virtual Standard_Boolean AfterUndo (const Handle(TDF_AttributeDelta)& anAttDelta, const Standard_Boolean forceIt = Standard_False) Standard_OVERRIDE;
- //! Returns the tree ID (default or explicit one depending
- //! onthe Set method used).
+ //! Returns the tree ID (default or explicit one depending on the Set method used).
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
Standard_EXPORT virtual void Restore (const Handle(TDF_Attribute)& with) Standard_OVERRIDE;
//! Returns the GUID for geometry attributes.
Standard_EXPORT static const Standard_GUID& GetID();
- //! This and the next methods are used to retrieve underlying geometry of the
- //! NamedShape, even if noone Geometry Attribute is
- //! associated . if not found or not compliant geometry return False.
+ //! This and the next methods are used to retrieve underlying geometry of the NamedShape,
+ //! even if no Geometry Attribute is associated.
+ //! if not found or not compliant geometry return False.
Standard_EXPORT TDataXtd_Geometry();
//! Returns the type of geometric construction T of this attribute.
//!
//! * The standard application root class
//!
-//! * The standard document wich contains data
+//! * The standard document which contains data
//!
//! * The external reference mechanism between documents
//!
//! the events during the Open/Store operation, a MessageDriver
//! based on Message_PrinterOStream may be used. In case of need client
//! can implement his own version inheriting from Message_Printer class
-//! and add it to the Messanger.
+//! and add it to the Messenger.
//! Also the trace level of messages can be tuned by setting trace level (SetTraceLevel (Gravity )) for the used Printer.
//! By default, trace level is Message_Info, so that all messages are output.
const Message_ProgressRange& theRange = Message_ProgressRange());
//! Retrieves aDoc from standard SEEKABLE stream theIStream.
- //! the stream should support SEEK fuctionality
+ //! the stream should support SEEK functionality
Standard_EXPORT PCDM_ReaderStatus Open (Standard_IStream& theIStream, Handle(TDocStd_Document)& theDoc,
const Message_ProgressRange& theRange = Message_ProgressRange());
const Message_ProgressRange& theRange = Message_ProgressRange());
//! Save theDoc to standard SEEKABLE stream theOStream.
- //! the stream should support SEEK fuctionality
+ //! the stream should support SEEK functionality
Standard_EXPORT PCDM_StoreStatus SaveAs (const Handle(TDocStd_Document)& theDoc,
Standard_OStream& theOStream,
const Message_ProgressRange& theRange = Message_ProgressRange());
const Message_ProgressRange& theRange = Message_ProgressRange());
//! Save theDoc TO standard SEEKABLE stream theOStream.
- //! the stream should support SEEK fuctionality
+ //! the stream should support SEEK functionality
Standard_EXPORT PCDM_StoreStatus SaveAs (const Handle(TDocStd_Document)& theDoc,
Standard_OStream& theOStream,
TCollection_ExtendedString& theStatusMessage,
}
- // deny or allow modifications acording to transaction state
+ // deny or allow modifications according to transaction state
if(myOnlyTransactionModification) {
myData->AllowModification (myUndoTransaction.IsOpen() && myUndoLimit
? Standard_True :Standard_False);
if (myUndoFILO.Extent())
myUndoTransaction.Open();
}
- // deny or allow modifications acording to transaction state
+ // deny or allow modifications according to transaction state
if (myOnlyTransactionModification) {
myData->AllowModification (myUndoTransaction.IsOpen() && myUndoLimit
? Standard_True :Standard_False);
if (myUndoLimit != 0) myUndoTransaction.Open();
- // deny or allow modifications acording to transaction state
+ // deny or allow modifications according to transaction state
if (myOnlyTransactionModification) {
myData->AllowModification (myUndoTransaction.IsOpen() && myUndoLimit
? Standard_True :Standard_False);
myUndos.RemoveFirst();
--n;
}
- // deny or allow modifications acording to transaction state
+ // deny or allow modifications according to transaction state
if(myOnlyTransactionModification) {
myData->AllowModification(myUndoTransaction.IsOpen() && myUndoLimit
? Standard_True :Standard_False);
if (isOpened && undoDone) OpenTransaction();
- // deny or allow modifications acording to transaction state
+ // deny or allow modifications according to transaction state
if(myOnlyTransactionModification) {
myData->AllowModification(myUndoTransaction.IsOpen() && myUndoLimit
? Standard_True :Standard_False);
if (isOpened && undoDone) OpenTransaction();
- // deny or allow modifications acording to transaction state
+ // deny or allow modifications according to transaction state
if(myOnlyTransactionModification) {
myData->AllowModification(myUndoTransaction.IsOpen() && myUndoLimit
? Standard_True :Standard_False);
//=======================================================================
//function : CurrentStorageFormatVersion
-//purpose : Returns current storage format verison of the document.
+//purpose : Returns current storage format version of the document.
//=======================================================================
TDocStd_FormatVersion TDocStd_Document::CurrentStorageFormatVersion()
{
Standard_EXPORT Standard_Boolean IsSaved() const;
//! returns True if document differs from the state of last saving.
- //! this method have to be called only wroking in the transaction mode
+ //! this method have to be called only working in the transaction mode
Standard_Boolean IsChanged() const;
//! This method have to be called to show document that it has been saved
//! raise if <me> is not saved.
Standard_EXPORT TCollection_ExtendedString GetName() const;
- //! returns the OS path of the file, in wich one <me> is
+ //! returns the OS path of the file, in which one <me> is
//! saved. Raise an exception if <me> is not saved.
Standard_EXPORT TCollection_ExtendedString GetPath() const;
//! Sets version of the format to be used to store the document
Standard_EXPORT void ChangeStorageFormatVersion(const TDocStd_FormatVersion theVersion);
- //! Returns current storage format verison of the document.
+ //! Returns current storage format version of the document.
Standard_EXPORT static TDocStd_FormatVersion CurrentStorageFormatVersion();
//! Dumps the content of me into the stream
//=======================================================================
//function : IsModified
//purpose : returns True if document differs from the state of last saving.
-// this method have to be called only wroking in the transaction mode
+// this method have to be called only working in the transaction mode
//=======================================================================
inline Standard_Boolean
{
myOnlyTransactionModification = theTransactionOnly;
- // deny or allow modifications acording to transaction state
+ // deny or allow modifications according to transaction state
if(myOnlyTransactionModification) {
myData->AllowModification(myUndoTransaction.IsOpen());
}
class TDocStd_Modified;
DEFINE_STANDARD_HANDLE(TDocStd_Modified, TDF_Attribute)
-//! Transient attribute wich register modified
-//! labels. This attribute is attached to root label.
+//! Transient attribute which register modified labels.
+//! This attribute is attached to root label.
class TDocStd_Modified : public TDF_Attribute
{
#ifdef OCCT_DEBUG
std::cout << "TDocStd_MultiTransactionManager::OpenCommand(): "
"Can't start new application transaction while a "
- "previous one is not commited or aborted" << std::endl;
+ "previous one is not committed or aborted" << std::endl;
#endif
throw Standard_Failure("Can't start new application transaction"
- "while a previous one is not commited or aborted");
+ "while a previous one is not committed or aborted");
}
myOpenTransaction = Standard_True;
Standard_Integer i;
//! Each transaction of this class involvess one transaction in each modified document.
//!
//! The documents to be synchronized should be added explicitly to
-//! the manager; then its interface is uesd to ensure that all transactions
+//! the manager; then its interface is used to ensure that all transactions
//! (Open/Commit, Undo/Redo) are performed synchronously in all managed documents.
//!
//! The current implementation does not support nested transactions
//! with TDocStd_Document class interface.
//!
//! NOTE: When you invoke CommitTransaction of multi transaction
-//! manager, all nested transaction of its documents will be closed (commited).
+//! manager, all nested transaction of its documents will be closed (committed).
class TDocStd_MultiTransactionManager : public Standard_Transient
{
//! Opens transaction in each document and sets the flag that
//! transaction is opened. If there are already opened transactions in the documents,
- //! these transactions will be aborted before openning new ones.
+ //! these transactions will be aborted before opening new ones.
Standard_EXPORT void OpenCommand();
//! Unsets the flag of started manager transaction and aborts
//! Commits transaction in all documents and fills the transaction manager
//! with the documents that have been changed during the transaction.
//! Returns True if new data has been added to myUndos.
- //! NOTE: All nested transactions in the documents will be commited.
+ //! NOTE: All nested transactions in the documents will be committed.
Standard_EXPORT Standard_Boolean CommitCommand();
//! Makes the same steps as the previous function but defines the name for transaction.
//! This attribute located at the root label of the
//! framework contains a back reference to the owner
-//! TDocStd_Document, providing acces to the document from
+//! TDocStd_Document, providing access to the document from
//! any label. private class Owner;
class TDocStd_Owner : public TDF_Attribute
{
//! Something to do after applying <anAttDelta>.
Standard_EXPORT virtual Standard_Boolean AfterUndo (const Handle(TDF_AttributeDelta)& anAttDelta, const Standard_Boolean forceIt = Standard_False) Standard_OVERRIDE;
- //! Returns a null handle. Raise allways for ,it is
+ //! Returns a null handle. Raise always for it is
//! nonsense to use this method.
Standard_EXPORT Handle(TDF_Attribute) BackupCopy() const Standard_OVERRIDE;
//! references contained in a Data from TDF. Only one
//! instance of this class is added to the TDF_Data
//! root label. Starting from this attribute all the
-//! Reference are linked together, to be found
-//! easely.
+//! Reference are linked together, to be found easily.
class TDocStd_XLinkRoot : public TDF_Attribute
{
{
Handle(TDF_Reference) REF;
if (!label.FindAttribute(TDF_Reference::GetID(),REF)) {
- throw Standard_DomainError(" TDocStd_XLinkTool::UpdateLink : not ref registred");
+ throw Standard_DomainError(" TDocStd_XLinkTool::UpdateLink : not ref registered");
}
TDocStd_XLinkTool XLinkTool;
Copy (label,REF->Get());
//! attributes located out of source scope are not
//! copied by this algorithm.
//! Depending of the called method an external
-//! reference is set in the the target document to
-//! registred the externallink.
+//! reference is set in the target document to
+//! registered the externallink.
//! Provide services to set, update and perform
//! external references.
//! Warning1: Nothing is provided in this class about the
Standard_EXPORT TDocStd_XLinkTool();
//! Copies the content of the label <fromsource> to the label <intarget>.
- //! The link is registred with an XLink attribute by <intarget>
+ //! The link is registered with an XLink attribute by <intarget>
//! label. if the content of <fromsource> is not
//! self-contained, and/or <intarget> has already an XLink
//! attribute, an exception is raised.
Standard_EXPORT void UpdateLink (const TDF_Label& L);
//! Copy the content of <fromsource> under
- //! <intarget>. Noone link is registred. noone check is done.
+ //! <intarget>. No link is registered. No check is done.
//! Example
//! Handle(TDocStd_Document) DOC, XDOC;
//! TDF_Label L, XL;
const Standard_GUID& GetDriverGUID() const { return myDriverGUID; }
//! Sets the driver for this function as that
- //! indentified by the GUID guid.
+ //! identified by the GUID guid.
Standard_EXPORT void SetDriverGUID (const Standard_GUID& guid);
//! Returns true if the execution failed
}
}
- // Ignore already passed fucntions (for the mode of ignoring the execution status).
+ // Ignore already passed functions (for the mode of ignoring the execution status).
if (!myUsageOfExecutionStatus && myPassedFunctions.Contains(Lnext))
continue;
//! single contexts
Standard_EXPORT static TopoDS_Shape FindUniqueContextSet (const TopoDS_Shape& S, const TopoDS_Shape& Context, Handle(TopTools_HArray1OfShape)& Arr);
- //! Subtitutes shape in source structure
+ //! Substitutes shape in source structure
Standard_EXPORT static Standard_Boolean SubstituteSShape (const TDF_Label& accesslabel, const TopoDS_Shape& From, TopoDS_Shape& To);
//! Returns True if outer wire is found and the found wire in <theWire>.
Standard_EXPORT static Standard_Integer ValidUntil (const TDF_Label& access, const TopoDS_Shape& S);
//! Returns the current shape (a Wire or a Shell) built (in the data framework)
- //! from the the shapes of the argument named shape.
+ //! from the shapes of the argument named shape.
//! It is used for IDENTITY name type computation.
Standard_EXPORT static void FindShape (const TDF_LabelMap& Valid, const TDF_LabelMap& Forbiden, const Handle(TNaming_NamedShape)& Arg, TopoDS_Shape& S);
//=======================================================================
//function : SetError
-//purpose : Sets an error occured on storage of a document.
+//purpose : Sets an error occurred on storage of a document.
//=======================================================================
void TObj_Application::SetError (const PCDM_StoreStatus theStatus, const TCollection_ExtendedString& theInfo)
//=======================================================================
//function : SetError
-//purpose : Sets an error occured on reading of a document.
+//purpose : Sets an error occurred on reading of a document.
//=======================================================================
void TObj_Application::SetError(const PCDM_ReaderStatus theStatus, const TCollection_ExtendedString& theInfo)
//! the static instance of the object (or derive your own application)
Standard_EXPORT TObj_Application();
- //! Sets an error occured on storage of a document.
+ //! Sets an error occurred on storage of a document.
void SetError (const PCDM_StoreStatus theStatus, const TCollection_ExtendedString& theInfo);
- //! Sets an error occured on reading of a document.
+ //! Sets an error occurred on reading of a document.
void SetError (const PCDM_ReaderStatus theStatus, const TCollection_ExtendedString& theInfo);
private:
#include <TCollection_HExtendedString.hxx>
#include <Standard_Failure.hxx>
-//! Methods inline implimentation for HExtendedString
+//! Methods inline implementation for HExtendedString
//! Computes a hash code for the given handle referred to extended string, in the range [1, theUpperBound]
//! @param theHExtendedString the handle referred to extended string which hash code is to be computed
//=======================================================================
//function : getLabelByRank
-//purpose : Auxiliary function to get a label and attache a name to it
+//purpose : Auxiliary function to get a label and attach a name to it
// Used in debug mode only
//=======================================================================
public:
/**
- * Methods hanling name of the object
+ * Methods handling name of the object
*/
//! Returns the map of names of the objects
virtual Standard_EXPORT void RemoveAllReferences();
//! Returns iterator for the objects which depend on this one.
- //! These reffering objects may belong to other models.
+ //! These referring objects may belong to other models.
//! theType narrows a variety of iterated objects
virtual Standard_EXPORT Handle(TObj_ObjectIterator) GetBackReferences
(const Handle(Standard_Type)& theType = NULL) const;
//! The default implementation just clear the back references container
virtual Standard_EXPORT void ClearBackReferences();
- //! Returns TRUE if obejct has 1 or more back references
+ //! Returns TRUE if object has 1 or more back references
Standard_EXPORT Standard_Boolean HasBackReferences() const;
//! Replace reference from old object to new object.
(const TObj_DeletingMode theMode = TObj_FreeOnly);
//! Deletes the object from the label. Checks if object can be deleted.
- //! Finds object on the label and detaches it by calling previos method.
+ //! Finds object on the label and detaches it by calling previous method.
//! Returns true if there is no object on the label after detaching
static Standard_EXPORT Standard_Boolean Detach
(const TDF_Label& theLabel,
//! Coping object with data and childs, but change name by adding string "_copy"
//! As result return handle of new object (null handle is something wrong)
//! NOTE: BackReferences not coping.
- //! After clonning all objects it is neccessary to call copy references
+ //! After cloning all objects it is necessary to call copy references
//! with the same relocation table
virtual Standard_EXPORT Handle(TObj_Object) Clone
(const TDF_Label& theTargetLabel,
* Method for updating object afrer restoring
*/
- //! Preforms updating the links and dependances of the object which are not
+ //! Performs updating the links and dependances of the object which are not
//! stored in persistence. Should be redefined if necessary.
virtual Standard_EXPORT void AfterRetrieval();
- //! Preforms storing the objects transient fields in OCAF document
+ //! Performs storing the objects transient fields in OCAF document
//! which were outside transaction mechanism.
- //! Default implementation doesnot nothing
+ //! Default implementation does nothing
virtual Standard_EXPORT void BeforeStoring();
protected:
/**
-* This class privides tool handling one of partitions (the set of
-* homogenious elements) in the OCAF based model`s data structure
+* This class provides tool handling one of partitions (the set of
+* homogeneous elements) in the OCAF based model`s data structure
*/
class TObj_Partition : public TObj_Object
{
protected:
- enum DataTag
+ enum DataTag
{
DataTag_First = TObj_Object::DataTag_Last,
DataTag_LastIndex,
* Constructor
*/
- //! Constructor is protected;
+ //! Constructor is protected;
//! static methods are used for creation of this type of objects
Standard_EXPORT TObj_Partition (const TDF_Label& theLabel, const Standard_Boolean theSetName = Standard_True);
-
+
public:
/**
* Method for create partition
*/
-
+
//! Creates a new partition on given label.
static Standard_EXPORT Handle(TObj_Partition) Create
(const TDF_Label& theLabel, const Standard_Boolean theSetName = Standard_True);
-
+
public:
/**
- * Methods hanling name of the object
+ * Methods handling name of the object
*/
//! Sets name of the object. partition does not check unique of own name
* Method for updating object afrer restoring
*/
- //! Preforms updating the links and dependances of the object which are not
+ //! Performs updating the links and dependencies of the object which are not
//! stored in persistence. Does not register the partition name
virtual Standard_EXPORT void AfterRetrieval() Standard_OVERRIDE;
/**
* Methods handling of the objects in partition
*/
-
+
//! Creates and Returns label for new object in partition.
Standard_EXPORT TDF_Label NewLabel() const;
-
+
//! Sets prefix for names of the objects in partition.
Standard_EXPORT void SetNamePrefix
(const Handle(TCollection_HExtendedString)& thePrefix);
//! Returns prefix for names of the objects in partition.
Handle(TCollection_HExtendedString) GetNamePrefix() const
{ return myPrefix; }
-
+
//! Generates and returns name for new object in partition.
- //! if theIsToChangeCount is true partition icrease own counter
+ //! if theIsToChangeCount is true partition increase own counter
//! to generate new name next time starting from new counter value
Standard_EXPORT Handle(TCollection_HExtendedString) GetNewName
( const Standard_Boolean theIsToChangeCount = Standard_True );
-
+
//! Return Last index in partition (reserved);
Standard_EXPORT Standard_Integer GetLastIndex() const;
-
+
//! Sets Last index in partition (reserved);
Standard_EXPORT void SetLastIndex(const Standard_Integer theIndex);
/**
* Methods to define partition by object
*/
-
+
//! Returns the partition in which object is stored. Null partition
//! returned if not found
static Standard_EXPORT Handle(TObj_Partition) GetPartition
(const Handle(TObj_Object)& theObject);
-
+
public:
/**
* Methods for updating the object
*/
-
+
//! Does nothing in the partition.
virtual Standard_Boolean Update()
{return Standard_True;}
//! return Standard_False is Target object is different type
Standard_EXPORT virtual Standard_Boolean copyData
(const Handle(TObj_Object)& theTargetObject) Standard_OVERRIDE;
-
+
private:
/**
* fields
*/
-
+
//! prefix for naming of objects in the partition
- Handle(TCollection_HExtendedString) myPrefix;
+ Handle(TCollection_HExtendedString) myPrefix;
protected:
//! Persistence of TObj object
*/
Standard_Integer myIndex; //!< current index of object in sequence
Handle(Standard_Type) myType; //!< type of object
- Handle(TObj_HSequenceOfObject) myObjects; //!< seqence of objects
+ Handle(TObj_HSequenceOfObject) myObjects; //!< sequence of objects
public:
//! CASCADE RTTI
public:
//! Methods for setting and obtaining the Model object
- //! Sets the the Model object
+ //! Sets the Model object
Standard_EXPORT void Set(const Handle(TObj_Model)& theModel);
//! Returns the Model object
Handle(TObj_TObject) aObject, aMasterTObj;
if (myLabel.IsNull())
{
- // unvalidity if it neccessary
+ // unvalidity if it necessary
aReference->myLabel.Nullify();
return;
}
enum RefTag
{
RefTag_First = TObj_Object::RefTag_Last,
- RefTag_Other, //!< here we test only one refrence to other
+ RefTag_Other, //!< here we test only one reference to other
RefTag_Last = RefTag_First + 100
};
//! Build the AISObject (if null) or update it.
//! No compute is done.
- //! Returns <True> if informations was found
+ //! Returns <True> if information was found
//! and AISObject updated.
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
//! Build the AISObject (if null) or update it.
//! No compute is done.
- //! Returns <True> if informations was found
+ //! Returns <True> if information was found
//! and AISObject updated.
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
//! Build the AISObject (if null) or update it.
//! No compute is done.
- //! Returns <True> if informations was found
+ //! Returns <True> if information was found
//! and AISObject updated.
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
//! Build the AISObject (if null) or update it.
//! No compute is done.
- //! Returns <True> if informations was found
+ //! Returns <True> if information was found
//! and AISObject updated.
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
//! Build the AISObject (if null) or update it.
//! No compute is done.
- //! Returns <True> if informations was found
+ //! Returns <True> if information was found
//! and AISObject updated.
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
//! Build the AISObject (if null) or update it.
//! No compute is done.
- //! Returns <True> if informations was found
+ //! Returns <True> if information was found
//! and AISObject updated.
Standard_EXPORT virtual Standard_Boolean Update (const TDF_Label& aLabel, Handle(AIS_InteractiveObject)& anAISObject) Standard_OVERRIDE;
//! It contains :
//!
//! * The ShapeEnum enumeration to describe the
-//! differents topological shapes.
+//! different topological shapes.
//!
//! * The Orientation enumeration to describe the
//! orientation of a topological shape.
DEFINE_STANDARD_ALLOC
- //! Creates an empty explorer, becomes usefull after Init.
+ //! Creates an empty explorer, becomes useful after Init.
Standard_EXPORT TopExp_Explorer();
//! Creates an Explorer on the Shape <S>.
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-// Modifed: Portage NT 7-5-97 DPF (strcasecmp)
-
#include <TopOpeBRep.hxx>
-//#ifdef _WIN32
-//#define strcasecmp strcmp Already defined
-//#endif
//=======================================================================
//function : Print
//purpose :
Standard_EXPORT void GapFiller (const Handle(TopOpeBRepDS_HDataStructure)& HDS) const;
//! Update the data structure with relevant
- //! informations deduced from the intersections.
+ //! information deduced from the intersections.
//!
//! Shells containing an intersected face.
//! Wires containing an intersected edge.
Standard_EXPORT void Checker (const Handle(TopOpeBRepDS_HDataStructure)& HDS) const;
//! Update the data structure with relevant
- //! informations deduced from the intersections 2d.
+ //! information deduced from the intersections 2d.
//!
//! Shells containing an intersected face.
//! Wires containing an intersected edge.
// xpu : 080498 : CTS20072 (e12,e3,p8)
// edgesintersector called for tolerances = 0.
// facesintersector called for greater tolerances
- // we assume facesintersector's ouput data to be valid
- // and we use it for correcting edgesintersector's ouput data
+ // we assume facesintersector's output data to be valid
+ // and we use it for correcting edgesintersector's output data
TopOpeBRepDS_ListIteratorOfListOfInterference itloI1( myPDS->ShapeInterferences(E1) );
Standard_Integer G; TopOpeBRepDS_Kind K;
Standard_Boolean found = GetGeometry(itloI1,P2D,G,K);
//! of the 2 faces.
Standard_EXPORT void GetESL (TopTools_ListOfShape& LES);
- //! calling the followings ProcessVPIonR and ProcessVPonR.
+ //! calling the following ProcessVPIonR and ProcessVPonR.
Standard_EXPORT void ProcessVPR (TopOpeBRep_FacesFiller& FF, const TopOpeBRep_VPointInter& VP);
//! processing ProcessVPonR for VPI.
// look for a vpoint with transition IN/OUT or OUT/IN
TopOpeBRep_VPointInterIterator VPI; VPI.Init(L,checkkeep);
- // With LineContructor, each RLine restricted by its vpbounds
+ // With LineConstructor, each RLine restricted by its vpbounds
// has its restrictions IN or ON the two faces
Standard_Boolean keeprline;
Standard_Boolean isedge1 = L.ArcIsEdge(1);
{
// if one solid has shell consisted of only a face but other one has valid closed
// shell we can detect current boolean operation as operation with half space object.
- // if shell of second solid is not valid too we cann't detect what kind of objects
+ // if shell of second solid is not valid too we can't detect what kind of objects
// we try to perform. in this case we do nothing and just return.
- // but before we must avoid shperes, toruses and solids with a face biult on spherical surfaces
+ // but before we must avoid spheres, toruses and solids with a face built on spherical surfaces
// of revolution (SSRFS) - solids with shell of one face:
// sphere (U: 0, 2PI) (V: -PI/2, PI/2),
// torus (U: 0, 2PI) (V: 0, 2PI).
{
// "new solid" is a new halfspace solid consists of two faces now: the first face is a face
// used to build halfspace solid and the second face is a new "face on infinity" specially
- // created to constuct correct bounding box around halfspace solid with bounds more wide than
+ // created to construct correct bounding box around halfspace solid with bounds more wide than
// previous one.
// the following algorithm is used:
// alors qu'il est dessus)
TopOpeBRepDS_Transition tOOedge;
- // distinguish wether OOedge is the edge on which geometric line lies.
+ // distinguish whether OOedge is the edge on which geometric line lies.
// OOedge == edge(line) ==> tOOedge = f(orientation of <edge> in <Face> FORWARD)
// OOedge != edge(line) ==> tOOedge = f(orientation of <Face>)
Standard_Real OOpar1,OOpar2; Standard_Boolean isonper; FDS_LOIinfsup((*myDS),OOedge,OOparedge,PVKind,PVIndex,
//! Merges the two edges <S1> and <S2> keeping the
//! parts in each edge of states <TB1> and <TB2>.
- //! Booleans onA, onB, onAB indicate wheter parts of edges
+ //! Booleans onA, onB, onAB indicate whether parts of edges
//! found as state ON respectively on first, second, and both
//! shapes must be (or not) built.
Standard_EXPORT void MergeEdges (const TopTools_ListOfShape& L1, const TopAbs_State TB1, const TopTools_ListOfShape& L2, const TopAbs_State TB2, const Standard_Boolean onA = Standard_False, const Standard_Boolean onB = Standard_False, const Standard_Boolean onAB = Standard_False);
mySDEdgeMap.Clear();
mySourceShapes.Clear();
- //we process all same domain faces during cycling throught the Shape1
+ //we process all same domain faces during cycling through the Shape1
if(myDataStructure -> DS().AncestorRank(FOR) != 1)
return;
LOF.Clear(); LOF.Assign(corrLOF);
- //corect face2d
+ //correct face2d
aLOFit.Initialize(corrLOF);
TopTools_ListOfShape corrLOF1;
for(; aLOFit.More(); aLOFit.Next()) {
TCollection_AsciiString an;//=postfix+prefix+cn;
an+=postfix; an+=prefix; an+=cn;
- printf(" -> Splitted Part IN : %s\n", an.ToCString());
+ printf(" -> Split Part IN : %s\n", an.ToCString());
cnt++;
}
TCollection_AsciiString an;//=postfix+prefix+cn;
an+=postfix; an+=prefix; an+=cn;
- printf(" -> Splitted Part OUT: %-s\n", an.ToCString());
+ printf(" -> Split Part OUT: %-s\n", an.ToCString());
cnt++;
}
TCollection_AsciiString an;//=postfix+prefix+cn;
an+=postfix; an+=prefix; an+=cn;
- printf(" -> Splitted Part ON : %s\n", an.ToCString());
+ printf(" -> Split Part ON : %s\n", an.ToCString());
cnt++;
}
}
}
}
else {
- // Usual case. The Edge was splitted onto several parts:
+ // Usual case. The Edge was split onto several parts:
TopTools_ListIteratorOfListOfShape aLIt(aLNew);
for (; aLIt.More(); aLIt.Next()) {
const TopoDS_Shape& aS = aLIt.Value();
aState = aDataMapOfShapeState(aS);
////////////////////////////////////////////////////////////////////////////
- // ** When aState==TopAbs_IN it is not evidence that it is realy so.
+ // ** When aState==TopAbs_IN it is not evidence that it is really so.
// There are some cases when JYL does not define ON parts completely.
// So, as we want to have right states, we have to do it ourselves.
// PKV Mon 25 Oct 1999
if (!ok) return;
// ngFS, ngFOR, xxFOR :
Standard_Real tolON = Max(tolFS,tolEG);
- tolON *= 1.e2;//*****CAREFULL***** : xpu040998, cto 904 A3
+ tolON *= 1.e2;//*****CAREFUL***** : xpu040998, cto 904 A3
gp_Vec ngFS; ok = FUN_tool_nggeomF(parEG,EG,FS,ngFS,tolON);
if (!ok) return;
tolON = Max(tolFOR,tolEG);
- tolON *= 1.e2;//*****CAREFULL***** : xpu040998, cto 904 A3
+ tolON *= 1.e2;//*****CAREFUL***** : xpu040998, cto 904 A3
gp_Vec ngFOR; ok = FUN_tool_nggeomF(parEG,EG,FOR,ngFOR,tolON);
if (!ok) return;
gp_Dir xxFOR; ok = FUN_tool_getxx(FOR,EG,parEG,ngFOR,xxFOR);
if (!ok) return; //nyiRAISE
Standard_Real tolON = Max(tolEG,tolFOR);//xpu291098 cto900L7(f7,e7on)
//xpu051198 PRO12953(f6,e4on)
- tolON *= 1.e2;//*****CAREFULL***** : xpu040998, cto 904 A3
+ tolON *= 1.e2;//*****CAREFUL***** : xpu040998, cto 904 A3
Standard_Boolean eONFOR = (d < tolON);
if (!eONFOR) return;
}
myCurrentWire = TopoDS::Wire(aFExp.Current());
priz=MakeRightWire ();
if (priz) {
- // This myFace contais a wire (myCurrentWire) that is not closed.
+ // This myFace contains a wire (myCurrentWire) that is not closed.
myIsDone=Standard_True;
myErrorStatus=3;
return;
if (!myCopyAvoidMap.Contains(myCurrentWire)) {
priz=ConnectWire (myCopyFace, myCopyAvoidMap, Standard_False);
if (priz) {
- // This myFace contais a wire (myCurrentWire) that is not closed.
+ // This myFace contains a wire (myCurrentWire) that is not closed.
myIsDone=Standard_False;
myErrorStatus=3;
return;
// For each edge of the MapSplit
if ( e.ShapeType() == TopAbs_EDGE ) {
- // get the list of splitted edges.
+ // get the list of split edges.
TopTools_ListOfShape& LstSplit = ChangeSplit(e,state);
- // for each edge of the list of splitted edges
+ // for each edge of the list of split edges
TopTools_ListIteratorOfListOfShape itSplitEdg;
itSplitEdg.Initialize(LstSplit);
while ( itSplitEdg.More()) {
}
// For each face of the MapSplit
else if ( e.ShapeType() == TopAbs_FACE ) {
- // get the list of splitted faces.
+ // get the list of split faces.
TopTools_ListOfShape& LstSplit = ChangeSplit(e,state);
- // for each face of the list of splitted faces
+ // for each face of the list of split faces
TopTools_ListIteratorOfListOfShape itSplitFac;
itSplitFac.Initialize(LstSplit);
while ( itSplitFac.More()) {
// modifies : myDataStructure
// Scans among the interferences attached to faces for FEI with
// support <FS> = cylinder, geometry <EG>; adds pcurve on <FS>
-// for edge <EG> if necessay.
+// for edge <EG> if necessary.
//=======================================================================
void TopOpeBRepBuild_Builder::SplitEvisoONperiodicF()
{
{
while (mySubShapeExplorer.More()) {
- // l = list of edges neighbour of edge myCurrentShape trough
+ // l = list of edges neighbour of edge myCurrentShape through
// the vertex mySubShapeExplorer.Current(), which is a vertex of the
// edge myCurrentShape.
const TopoDS_Shape& V = mySubShapeExplorer.Current();
{
while (mySubShapeExplorer.More()) {
- // l = list of edges neighbour of edge myCurrentShape trough
+ // l = list of edges neighbour of edge myCurrentShape through
// the vertex mySubShapeExplorer.Current(), which is a vertex of the
// edge myCurrentShape.
const TopoDS_Shape& V = mySubShapeExplorer.Current();
{
// recall : (I1,I2) / I1=(T(F),G,S=edge), I2=(T(F),G,S=F) describes a 3d interference
//
- // purpose : attached to EIX (section egde SE), I=(T(Fsdm),G,S) /
+ // purpose : attached to EIX (section edge SE), I=(T(Fsdm),G,S) /
// Fsdm shares same domain with Fanc ancestor face of SE
// => SE has split ON near G =>
// I'=(T(Fsdm),G,S=Fsdm) gives bad information (3d information whereas
// we should only have 2d information)
// - PRO12660 for spON(e48) -
-
+
TopOpeBRepDS_DataStructure& BDS = HDS->ChangeDS();
const TopoDS_Edge& SE = TopoDS::Edge(BDS.Shape(EIX));
Standard_Integer rkSE = BDS.AncestorRank(SE);
//! the faulty shapes (edge,wire,face) to <MshNOK>.
//! <FF> is a face descendant of <F>.
//! <MWisOld>(wire) = 1 if wire is wire of <F>
- //! 0 wire results from <F>'s wire splitted.
+ //! 0 wire results from <F>'s wire split.
//! returns false if purge fails
Standard_EXPORT static Standard_Boolean PurgeClosingEdges (const TopoDS_Face& F, const TopoDS_Face& FF, const TopTools_DataMapOfShapeInteger& MWisOld, TopTools_IndexedMapOfOrientedShape& MshNOK);
// diff = Umin<ii> - Umax<jj> : k = 1
// diff = Vmin<ii> - Vmax<jj> : k = 3
Standard_Real diff = UV(ii,k) - UV(jj,k+1);
- // IMPORTANT : for splitted faces sharing same edge, use
+ // IMPORTANT : for split faces sharing same edge, use
// chklarge = True.
Standard_Boolean disjoint = chklarge ? (diff >= -tol) : (diff > 0.);
if (disjoint) return DIFF;
//=======================================================================
//function : BuildListConnexEdge
//purpose : giving one edge, build the list of connex edges which have
-// vertices that have only two connex edges. All the edges that are addes
+// vertices that have only two connex edges. All the edges that are added
// to the list must be added also to the mapUniq, in order for the caller
-// to not treat again theses edges.
+// to not treat again these edges.
// This list is always oriented in the "Forward" direction.
//=======================================================================
itFac1.Next();
}
- // 3rd condition : same suport
+ // 3rd condition : same support
if (HasConnex) {
HasConnex = SameSupport(TopoDS::Edge(theEdge),TopoDS::Edge(theEdgeConnex));
}
TopTools_IndexedMapOfOrientedShape& MshNOK)
{
// Fin is the original face
- // FF is the splitted face
+ // FF is the split face
- // prequesitory : splitted edges, of edge ancestor a closing edge
+ // prequesitory : split edges, of edge ancestor a closing edge
// keep in memory the geometry of the ancestor edge,
// they answer True to BRep_Tool::IsClosed.
// elsewhere : we have to get this information using geometric
//=======================================================================
//function : BuildList
-//purpose : Build the map of faces with the list of inernal edges.
+//purpose : Build the map of faces with the list of internal edges.
//=======================================================================
void TopOpeBRepTool_PurgeInternalEdges::BuildList()
Standard_Boolean TopOpeBRepTool_REGUS::SplitF(const TopoDS_Face& Fanc, TopTools_ListOfShape& FSplits)
{
- // prequesitory : All edges have already been splitted, there is no
+ // prequesitory : All edges have already been split, there is no
// internal vertex on edge, except for internal edge.
TopAbs_Orientation oAnc = Fanc.Orientation();
TopoDS_Shape aLocalShapeFromFace = Fanc.Oriented(TopAbs_FORWARD);
ffound.Nullify();
TopoDS_Face fref = TopoDS::Face(myf);
- // Give us egde <e>, and a reference face <fref> (= <myf>)
+ // Give us edge <e>, and a reference face <fref> (= <myf>)
// - parameter on <e> = <pare>.
// - xxi = tangent fo face fi at pnt(e,pare) oriented INSIDE 2d(fi)
// normal to tge = tg(e,pare).
// purpose : looking for ffound /
- // MatterAng(xxref, xxfound) = Min{ MatterAng(xxref, xxi), xxi for fi in <lof>
+ // MatterAng(xxref, xxfound) = Min{ MatterAng(xxref, xxi), xxi for fi in <lof>
// providing fi reduces 3d(fref) }
// <parone> :
// Prequesitories :
// 0) an edge with an INTERNAL vertex binded in <mapVedges> must be
- // splitted
+ // split
// After splitting such edges, we deal only with FORWARD and
// REVERSED vertices.
// 1) a vertex belonging to a CLOSING edge is represented by 2 distinct
// 2d points in the UV space.
// 2) a vertex belonging to a DEGENERATED edge has at least 2 UV rep.
- // (if the original degenerated edge has been splitted).
+ // (if the original degenerated edge has been split).
// the bounds of the degenerated edge share the same TShape.
// 3) a CLOSED edge binds the same vertex oriented FORWARD and REVERSED.
}//ite(loEcur)
FINI = (nite == nE);
- // if Scur = <currentW> gives only one new wire, and has no new splitted edges, <currentW>
+ // if Scur = <currentW> gives only one new wire, and has no new split edges, <currentW>
// is valid and unchanged.
Standard_Boolean onewok = FINI && loW.IsEmpty() && !hasnewsplits;
if (onewok){
// diff = Umin<ii> - Umax<jj> : k = 1
// diff = Vmin<ii> - Vmax<jj> : k = 3
Standard_Real diff = UV(ii,k) - UV(jj,k+1);
- // IMPORTANT : for splitted faces sharing same edge, use
+ // IMPORTANT : for split faces sharing same edge, use
// chklarge = True.
disjoint = chklarge ? (diff >= -tol) : (diff > 0.);
if (disjoint) {ismaller = 1; return TopAbs_OUT;}
// Filling the map <mapWlow> : with (key + item) = new face,
// item = (newface has holes) ? list of wires IN the wire key: empty list
- // prequesitory : <mapoldWnewW> binds (non splitted wire of <F>, emptylos)
- // (splitted wire of <F>, splits of the wire)
+ // prequesitory : <mapoldWnewW> binds (non split wire of <F>, emptylos)
+ // (split wire of <F>, splits of the wire)
// Mapping :
// --------
// Filling <oldW> : list of wires of <F>
- // Filling <mapWlow> : with (non-splitted old wire, emptylos),
+ // Filling <mapWlow> : with (non-split old wire, emptylos),
// (split of old wire, emptylos)
TopTools_ListOfShape oldW;
Standard_Integer noldW = mapoldWnewW.Extent();
//! classify shape S compared with shape SRef.
//! AvoidS is not used in classification; AvoidS may be IsNull().
- //! (usefull to avoid ON or UNKNOWN state in special cases)
+ //! (useful to avoid ON or UNKNOWN state in special cases)
Standard_EXPORT TopAbs_State StateShapeShape (const TopoDS_Shape& S, const TopoDS_Shape& AvoidS, const TopoDS_Shape& SRef);
//! classify shape S compared with shape SRef.
//! LAvoidS is list of S subshapes to avoid in classification
//! AvoidS is not used in classification; AvoidS may be IsNull().
- //! (usefull to avoid ON or UNKNOWN state in special cases)
+ //! (useful to avoid ON or UNKNOWN state in special cases)
Standard_EXPORT TopAbs_State StateShapeShape (const TopoDS_Shape& S, const TopTools_ListOfShape& LAvoidS, const TopoDS_Shape& SRef);
//! classify shape S compared with reference shape.
//! AvoidS is not used in classification; AvoidS may be IsNull().
- //! (usefull to avoid ON or UNKNOWN state in special cases)
+ //! (useful to avoid ON or UNKNOWN state in special cases)
Standard_EXPORT TopAbs_State StateShapeReference (const TopoDS_Shape& S, const TopoDS_Shape& AvoidS);
//! classify shape S compared with reference shape.
//! LAvoidS is list of S subshapes to avoid in classification
- //! (usefull to avoid ON or UNKNOWN state in special cases)
+ //! (useful to avoid ON or UNKNOWN state in special cases)
Standard_EXPORT TopAbs_State StateShapeReference (const TopoDS_Shape& S, const TopTools_ListOfShape& LAvoidS);
Standard_EXPORT TopOpeBRepTool_SolidClassifier& ChangeSolidClassifier();
{
public:
- //! Creates an empty explorer, becomes usefull after Init.
+ //! Creates an empty explorer, becomes useful after Init.
TopOpeBRepTool_ShapeExplorer() : myIndex(0)
{
}
Standard_EXPORT static void UVBOUNDS (const TopoDS_Face& F, Standard_Boolean& UPeri, Standard_Boolean& VPeri, Standard_Real& Umin, Standard_Real& Umax, Standard_Real& Vmin, Standard_Real& Vmax);
- //! ajust u,v values in UVBounds of the domain of the
+ //! adjust u,v values in UVBounds of the domain of the
//! geometric shape <S>, according to Uperiodicity and
//! VPeriodicity of the domain.
//! <S> is assumed to be a face.
//! not periodic in U and/or V .
Standard_EXPORT static void AdjustOnPeriodic (const TopoDS_Shape& S, Standard_Real& u, Standard_Real& v);
- //! indicates wheter shape S1 is a closing shape on S2 or not.
+ //! indicates whether shape S1 is a closing shape on S2 or not.
Standard_EXPORT static Standard_Boolean Closed (const TopoDS_Shape& S1, const TopoDS_Shape& S2);
Standard_EXPORT static Standard_Real PeriodizeParameter (const Standard_Real par, const TopoDS_Shape& EE, const TopoDS_Shape& FF);
// ----------------------------------------------------------------------
Standard_EXPORT gp_Dir FUN_tool_nCinsideS(const gp_Dir& tgC,const gp_Dir& ngS)
{
- // Give us a curve C on suface S,<parOnC>,a parameter
+ // Give us a curve C on surface S,<parOnC>,a parameter
// Purpose : compute normal vector to C,tangent to S at
// given point,oriented INSIDE S
// <tgC> : geometric tangent at point of <parOnC>
// On Unix platforms:
// ------------------
// In method Read(Standard_IStream &IS), during the version
-// authentification we cut last '\r' in the line (which will
+// authentication we cut last '\r' in the line (which will
// be present if file is in DOS coding)
#include <Message_ProgressScope.hxx>
S = O;
}
- // It is the first comparaison for this complex transition
+ // It is the first comparison for this complex transition
if (Init) {
Init=Standard_False;
TgtFirst =T;
//! of a Curve.
Standard_EXPORT void Reset (const gp_Dir& Tgt, const gp_Dir& Norm, const Standard_Real Curv);
- //! Initialize a Transition with the local description
- //! of a straigth line.
+ //! Initialize a Transition with the local description of a straight line.
Standard_EXPORT void Reset (const gp_Dir& Tgt);
//! Add a curve element to the boundary. If Or is
static gp_Dir FUN_nCinsideS(const gp_Dir& tgC, const gp_Dir& ngS)
{
- // Give us a curve C on suface S, <parOnC>, a parameter
+ // Give us a curve C on surface S, <parOnC>, a parameter
// Purpose : compute normal vector to C, tangent to S at
// given point , oriented INSIDE S
// <tgC> : geometric tangent at point of <parOnC>
// Analysis for tangent cases : if two boundary faces are same sided
// and have tangent normals, if they have opposite orientations
// we choose INTERNAL as resulting complex transition (case EXTERNAL
- // refering to no logical case)
+ // referring to no logical case)
if (TopAbs::Complement(Ori) == Oriref) return M_Ointernal;
else return (Standard_Integer ) M_Unknown; // nyi FUN_RAISE
}
//! MakeFacetedBrepAndBrepWithVoids
//! MakeShellBasedSurfaceModel
//! Each of these classes call the Builder
-//! The class tool centralizes some common informations.
+//! The class tool centralizes some common information.
class TopoDSToStep
{
public:
C2d->IsKind(STANDARD_TYPE(Geom2d_Line))) iaplan = Standard_True;
}
- // to be modified : cf and cl are the topological trimming prameter
+ // to be modified : cf and cl are the topological trimming parameter
// these are computed after ! (U1 and U2) -> cf and cl instead
if (iaplan) {
gp_Pnt Pnt1 = CA.Value(CA.FirstParameter()), Pnt2 = CA.Value(CA.LastParameter());
}
else
{
- Message::SendFail ("Error: Builded surface is not a plane.");
+ Message::SendFail ("Error: Built surface is not a plane.");
return 1;
}
}
// set style for all component from Next Usage Occurrence.
#ifdef OCCT_DEBUG
- std::cout << "Set the style for SHUO next_usage-occurrance" << std::endl;
+ std::cout << "Set the style for SHUO next_usage-occurrence" << std::endl;
#endif
/*
// may be work, but static it returns excess shapes. It is more faster to use OLD version.
if {[validrange $e] == "edge has no valid range"} {
regexp {Mass : *([0-9\-+.eE]+)} [lprops $e] dummy len
regexp {Tolerance MAX=([0-9\-+.eE]+)} [tolerance $e] dummy tol
- puts "Error: edge $e (lenth=$len, tolerance=$tol) is too small"
+ puts "Error: edge $e (length=$len, tolerance=$tol) is too small"
}
}
if {[validrange $e] == "edge has no valid range"} {
regexp {Mass : *([0-9\-+.eE]+)} [lprops $e] dummy len
regexp {Tolerance MAX=([0-9\-+.eE]+)} [tolerance $e] dummy tol
- puts "Error: edge $e (lenth=$len, tolerance=$tol) is too small"
+ puts "Error: edge $e (length=$len, tolerance=$tol) is too small"
}
}