You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the case when a sequence needs to be managed by handle, use `occ::handle<NCollection_Sequence<T>>` directly:
1024
+
For the case when a sequence needs to be managed by handle, use `NCollection_HSequence<T>` (which inherits from both `NCollection_Sequence<T>` and `Standard_Transient`):
occ::handle<MyPackage_SequenceOfPnt> aSeq = new MyPackage_SequenceOfPnt();
1032
+
occ::handle<MyPackage_HSequenceOfPnt> aSeq = new MyPackage_HSequenceOfPnt();
1031
1033
~~~~
1032
1034
1033
-
The legacy `DEFINE_HSEQUENCE` macro is retained for compatibility with existing code, but new code should prefer direct use of `occ::handle<NCollection_Sequence<T>>`.
1035
+
The legacy `DEFINE_HSEQUENCE` macro is removed in OCCT 8.0.0. Existing code using it should be migrated to `NCollection_HSequence<T>` (the `migrate_hcollections.py` script in `adm/` automates this conversion).
1034
1036
1035
1037
See more details about available collections in following sections.
Copy file name to clipboardExpand all lines: dox/user_guides/modeling_algos/modeling_algos.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -927,7 +927,7 @@ The algorithm will function with any class inheriting *Geom_Surface*.
927
927
~~~~{.cpp}
928
928
gp_Pnt P;
929
929
occ::handle<Geom_Surface> aSurf = new Geom_BezierSurface(...);
930
-
GeomAPI_ProjectPointOnSurf Proj (P, S);
930
+
GeomAPI_ProjectPointOnSurf Proj (P, aSurf);
931
931
~~~~
932
932
933
933
To restrict the search for normals within the given rectangular domain [U1, U2, V1, V2], use the constructor <i>GeomAPI_ProjectPointOnSurf Proj (P, S, U1, U2, V1, V2)</i>
0 commit comments