1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-03-30 17:16:22 +03:00

Documentation - Fix various typos found in codebase #414

Found via codespell
This commit is contained in:
luzpaz 2025-03-07 10:34:32 -05:00 committed by GitHub
parent dbdff3b004
commit db58517016
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 16 deletions

View File

@ -137,18 +137,18 @@ static void Sample()
// Setting the new TPrsStd_AISPresentation to <ShapeLabel>
// It can be done in two different ways:
Handle(TPrsStd_AISPresentation) Presenation;
Handle(TPrsStd_AISPresentation) Presentation;
// 1. By giving to TPrsStd_AISPresentation attribute Standard_GUID of an attribute to be displayed:
// This GUID will be used to find driver for building AIS_InteractiveObject in the map of drivers
Presenation = TPrsStd_AISPresentation::Set( ShapeLabel, TNaming_NamedShape::GetID() );
Presentation = TPrsStd_AISPresentation::Set( ShapeLabel, TNaming_NamedShape::GetID() );
// 2. Or by giving the attribute itself to TPrsStd_AISPresentation attribute:
// An ID of attribute will be used to find driver for building AIS_InteractiveObject in the map of drivers
Handle(TNaming_NamedShape) NS;
if( ShapeLabel.FindAttribute( TNaming_NamedShape::GetID(), NS) ) {
Presenation = TPrsStd_AISPresentation::Set( NS );
Presentation = TPrsStd_AISPresentation::Set( NS );
}

View File

@ -49,26 +49,26 @@ proc action_time args {
set whole_time [action_time]
puts "Whole document open time $whole_time mcs"
set quater_time [action_time -read0:2]
puts "Quater of document open time $quater_time mcs"
set quarter_time [action_time -read0:2]
puts "Quarter of document open time $quarter_time mcs"
# Check that open of quater of the document is significantly faster than open of whole.
if { [expr $quater_time * 1.5] > $whole_time } {
puts "Error : loading of quater of the document content too slow relatively to the whole document load"
# Check that open of quarter of the document is significantly faster than open of whole.
if { [expr $quarter_time * 1.5] > $whole_time } {
puts "Error : loading of quarter of the document content too slow relatively to the whole document load"
}
set four_quaters_time [action_time -read0:1 -read0:2 -read0:3 -read0:4]
puts "Four quaters of document open time $four_quaters_time mcs"
set four_quarters_time [action_time -read0:1 -read0:2 -read0:3 -read0:4]
puts "Four quarters of document open time $four_quarters_time mcs"
# Check that open of four quaters of the document is not too much slower than opening of the whole document.
if { [expr $four_quaters_time * 0.9] > $whole_time } {
puts "Error : loading of four quaters of the document content too slow relatively to the whole document load"
# Check that open of four quarters of the document is not too much slower than opening of the whole document.
if { [expr $four_quarters_time * 0.9] > $whole_time } {
puts "Error : loading of four quarters of the document content too slow relatively to the whole document load"
}
set no_arrays_time [lindex [time {
Open ${docname} D4 -skipTDataStd_IntegerArray -read0:2
}] 0]
puts "Quater of document without arrays open time $no_arrays_time mcs"
puts "Quarter of document without arrays open time $no_arrays_time mcs"
set attrs [Attributes D4 0:2:13]
if {"${attrs}" != "TDataStd_Real "} {

View File

@ -13,7 +13,7 @@ stepread [locate_data_file OCC22459-TEST2.stp] result *
set exception_status 0
set msg [ tpstat c ]
set index [ lsearch $msg Exeption ]
set index [ lsearch $msg Exception ]
if {$index > -1} {
set exception_status 1

View File

@ -12,7 +12,7 @@ stepread [locate_data_file bug24135_Drum.stp] a *
set exception_status 0
set msg [ tpstat c ]
set index [ lsearch $msg Exeption ]
set index [ lsearch $msg Exception ]
if {$index > -1} {
set exception_status 1