mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024023: Revamp the OCCT Handle -- general
Missing headers added; includes of headers "Handle_...hxx" removed. Misuses of macro Handle() and its use in typedefs corrected. Alias classes Profile and Option are removed from IFSelect; ones defined in MoniTool are used directly. Removed header files defining only Handle classes (except Image_PixMap_Handle.hxx) Classes SelectMgr_BaseFrustum and now inherit Standard_Transient and can be manipulated by Handle (not NCollection_Handle) Fixed reference-type local variable pointing to temporary object Use of handle in conditional expressions and comparisons to NULL are replaced by call to method IsNull()
This commit is contained in:
@@ -1940,8 +1940,7 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
|
||||
Seq2d->Append(t1);
|
||||
Seq2d->Append(t2);
|
||||
Seq2d->Append((t1+t2)/2);
|
||||
Handle(TColStd_HSequenceOfReal) Seq3d = new TColStd_HSequenceOfReal;
|
||||
Seq3d->Append(SFTP.Perform(Seq2d,Standard_False));
|
||||
Handle(TColStd_HSequenceOfReal) Seq3d = SFTP.Perform(Seq2d,Standard_False);
|
||||
|
||||
Standard_Real dist1 = pcurPnt.Distance(crv->Value(Seq3d->Value(1)));// correting Seq3d already project
|
||||
Standard_Real dist2 = pcurPnt.Distance(crv->Value(Seq3d->Value(2)));
|
||||
@@ -2073,8 +2072,7 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
|
||||
Seq2d->Append(t1);
|
||||
Seq2d->Append(t2);
|
||||
Seq2d->Append((t1+t2)/2);
|
||||
Handle (TColStd_HSequenceOfReal) Seq3d = new TColStd_HSequenceOfReal;
|
||||
Seq3d->Append(SFTP.Perform(Seq2d,Standard_False));
|
||||
Handle (TColStd_HSequenceOfReal) Seq3d = SFTP.Perform(Seq2d,Standard_False);
|
||||
|
||||
Standard_Real dist1 = pcurPnt.Distance(crv->Value(Seq3d->Value(1)));// correting Seq3d already project
|
||||
Standard_Real dist2 = pcurPnt.Distance(crv->Value(Seq3d->Value(2)));
|
||||
|
Reference in New Issue
Block a user