IntWalk
OCCT package IntWalk: IntWalk_StatusDeflection, IntWalk_TheInt2S, IntWalk_VectorOfInteger, IntWalk_VectorOfWalkingData, and 1 more bound classes.
IntWalk_StatusDeflection
Properties(6)
IntWalk_TheInt2S
Constructors(2)
- constructor(S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, TolTangency: number): IntWalk_TheInt2S
initialize the parameters to compute the solution point it 's possible to write to optimize: IntImp_Int2S inter(S1,S2,Func,TolTangency);
math_FunctionSetRootrsnld(inter.Function()); while ...{ Param(1)=... Param(2)=... param(3)=... inter.Perform(Param,rsnld); }Parameters (3)S1S2TolTangency
- constructor(Param: NCollection_Array1_double, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, TolTangency: number): IntWalk_TheInt2S
compute the solution point with the close point
Parameters (4)ParamS1S2TolTangency
Instance methods(8)
- IsDone(): boolean
Returns TRUE if the creation completed without failure.
- IsEmpty(): boolean
Returns TRUE when there is no solution to the problem.
Returns the intersection point.
- IsTangent(): boolean
Returns True if the surfaces are tangent at the intersection point.
Returns the tangent at the intersection line.
Returns the tangent at the intersection line in the parametric space of the first surface.
Returns the tangent at the intersection line in the parametric space of the second surface.
return the intersection point which is enable for changing.
IntWalk_VectorOfInteger
Contiguous dynamic array using a flat memory buffer.
Unlike NCollection_DynamicArray which uses segmented block storage, this container stores all elements in a single contiguous allocation, providing O(1) element access with a single pointer dereference.
For trivially copyable types, growth uses Standard::Reallocate which can extend the buffer in-place without copying elements. For non-trivial types, growth allocates a new buffer and move-constructs elements.
Indices are always 0-based.
Constructors(4)
Empty constructor.
- constructor(theCapacity: number): IntWalk_VectorOfInteger
Constructor with pre-allocated capacity. Unlike std::vector(n), this constructor does not create elements. Use
Resize()orNCollection_LinearVector(theSize, theValue)to construct items.Parameters (1)theCapacity—number of elements to pre-allocate
Copy constructor.
Parameters (1)theOther
- constructor(theSize: number, theValue: number): IntWalk_VectorOfInteger
Constructor creating theSize elements initialized to theValue. Equivalent to std::vector(n, val).
Parameters (2)theSize—number of elements to constructtheValue—value to initialize each element with
Static methods(1)
- MaxSize(): numberReturns
current max supported size.
Instance methods(24)
- Data(): numberReturns
raw data pointer.
- HasData(): booleanReturns
true if the vector has allocated storage.
- Empty(): booleanReturns
true if the vector contains no elements.
- Size(): numberReturns
number of elements.
- IsEmpty(): booleanReturns
true if the vector contains no elements.
- Capacity(): numberReturns
current allocated capacity.
- Reserve(theCapacity: number): void
Pre-allocate memory for at least theCapacity elements without changing size.
Parameters (1)theCapacity—minimum capacity to ensure
- Resize(theSize: number): void
Change the number of elements. If theSize >
Size(), new elements are default-constructed. If theSize <Size(), excess elements are destroyed.Parameters (1)theSize—new number of elements
- Resize(theSize: number, theValue: number): void
Change the number of elements, filling new slots with theValue. If theSize >
Size(), new elements are copy-constructed from theValue. If theSize <Size(), excess elements are destroyed.Parameters (2)theSize—new number of elementstheValue—value to fill new elements with
- Value(theIndex: number): numberParameters (1)
theIndex—element index (0-based)
Returnsconst reference to element at theIndex.
- ChangeValue(theIndex: number): numberParameters (1)
theIndex—element index (0-based)
Returnsmutable reference to element at theIndex.
- First(): numberReturns
const reference to the first element.
- ChangeFirst(): numberReturns
mutable reference to the first element.
- Last(): numberReturns
const reference to the last element.
- ChangeLast(): numberReturns
mutable reference to the last element.
- Append(theValue: number): number
Append a copy of theValue to the end.
Parameters (1)theValue—element to append
Returnsreference to the appended element
- Appended(): number
Append a default-constructed element.
Returnsreference to the appended element
- SetValue(theIndex: number, theValue: number): number
Set value at theIndex. If theIndex >=
Size(), the vector is extended.Parameters (2)theIndex—element index (0-based)theValue—value to set
Returnsreference to the element
- InsertBefore(theIndex: number, theValue: number): void
Insert theValue before theIndex, shifting elements right.
Parameters (2)theIndex—insertion position (0-based)theValue—element to insert
- InsertAfter(theIndex: number, theValue: number): void
Insert theValue after theIndex, shifting elements right.
Parameters (2)theIndex—position after which to insert (0-based)theValue—element to insert
- EraseLast(): void
Remove the last element.
- Erase(theIndex: number): void
Remove element at theIndex, shifting subsequent elements left.
Parameters (1)theIndex—element index (0-based)
- Erase(theFrom: number, theTo: number): void
Remove elements in range [theFrom, theTo), shifting subsequent elements left.
Parameters (2)theFrom—start index (inclusive, 0-based)theTo—end index (exclusive, 0-based)
- Clear(theReleaseMemory?: boolean): void
Remove all elements.
Parameters (1)theReleaseMemory—if true, deallocate the buffer
IntWalk_VectorOfWalkingData
Contiguous dynamic array using a flat memory buffer.
Unlike NCollection_DynamicArray which uses segmented block storage, this container stores all elements in a single contiguous allocation, providing O(1) element access with a single pointer dereference.
For trivially copyable types, growth uses Standard::Reallocate which can extend the buffer in-place without copying elements. For non-trivial types, growth allocates a new buffer and move-constructs elements.
Indices are always 0-based.
Constructors(4)
Empty constructor.
- constructor(theCapacity: number): IntWalk_VectorOfWalkingData
Constructor with pre-allocated capacity. Unlike std::vector(n), this constructor does not create elements. Use
Resize()orNCollection_LinearVector(theSize, theValue)to construct items.Parameters (1)theCapacity—number of elements to pre-allocate
Copy constructor.
Parameters (1)theOther
- constructor(theSize: number, theValue: IntWalk_WalkingData): IntWalk_VectorOfWalkingData
Constructor creating theSize elements initialized to theValue. Equivalent to std::vector(n, val).
Parameters (2)theSize—number of elements to constructtheValue—value to initialize each element with
Static methods(1)
- MaxSize(): numberReturns
current max supported size.
Instance methods(24)
- Returns
raw data pointer.
- HasData(): booleanReturns
true if the vector has allocated storage.
- Empty(): booleanReturns
true if the vector contains no elements.
- Size(): numberReturns
number of elements.
- IsEmpty(): booleanReturns
true if the vector contains no elements.
- Capacity(): numberReturns
current allocated capacity.
- Reserve(theCapacity: number): void
Pre-allocate memory for at least theCapacity elements without changing size.
Parameters (1)theCapacity—minimum capacity to ensure
- Resize(theSize: number): void
Change the number of elements. If theSize >
Size(), new elements are default-constructed. If theSize <Size(), excess elements are destroyed.Parameters (1)theSize—new number of elements
- Resize(theSize: number, theValue: IntWalk_WalkingData): void
Change the number of elements, filling new slots with theValue. If theSize >
Size(), new elements are copy-constructed from theValue. If theSize <Size(), excess elements are destroyed.Parameters (2)theSize—new number of elementstheValue—value to fill new elements with
- Value(theIndex: number): IntWalk_WalkingDataParameters (1)
theIndex—element index (0-based)
Returnsconst reference to element at theIndex.
- ChangeValue(theIndex: number): IntWalk_WalkingDataParameters (1)
theIndex—element index (0-based)
Returnsmutable reference to element at theIndex.
- Returns
const reference to the first element.
- Returns
mutable reference to the first element.
- Returns
const reference to the last element.
- Returns
mutable reference to the last element.
- Append(theValue: IntWalk_WalkingData): IntWalk_WalkingData
Append a copy of theValue to the end.
Parameters (1)theValue—element to append
Returnsreference to the appended element
Append a default-constructed element.
Returnsreference to the appended element
- SetValue(theIndex: number, theValue: IntWalk_WalkingData): IntWalk_WalkingData
Set value at theIndex. If theIndex >=
Size(), the vector is extended.Parameters (2)theIndex—element index (0-based)theValue—value to set
Returnsreference to the element
- InsertBefore(theIndex: number, theValue: IntWalk_WalkingData): void
Insert theValue before theIndex, shifting elements right.
Parameters (2)theIndex—insertion position (0-based)theValue—element to insert
- InsertAfter(theIndex: number, theValue: IntWalk_WalkingData): void
Insert theValue after theIndex, shifting elements right.
Parameters (2)theIndex—position after which to insert (0-based)theValue—element to insert
- EraseLast(): void
Remove the last element.
- Erase(theIndex: number): void
Remove element at theIndex, shifting subsequent elements left.
Parameters (1)theIndex—element index (0-based)
- Erase(theFrom: number, theTo: number): void
Remove elements in range [theFrom, theTo), shifting subsequent elements left.
Parameters (2)theFrom—start index (inclusive, 0-based)theTo—end index (exclusive, 0-based)
- Clear(theReleaseMemory?: boolean): void
Remove all elements.
Parameters (1)theReleaseMemory—if true, deallocate the buffer