mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0024683: Convertation of the generic classes to the non-generic. Part 1
Generic classes from "BRepApprox" package: "BRepApprox_ApproxLineGen" and "BRepApprox_SurfaceToolGen" converted to the non-generic classes "BRepApprox_ApproxLine" and "BRepApprox_SurfaceTool". Generic classes from "BRepBlend" package: "BRepBlend_HCurve3dToolGen" and "BRepBlend_HCurve2dToolGen" converted to the non-generic classes "BRepBlend_HCurve3dTool" and "BRepBlend_HCurve2dTool". Generic classes from "Blend" package: "Blend_Extremity", "Blend_Line" and "Blend_PointOnRst" moved to the corresponding non-generic classes "BRepBlend_Extremity", "BRepBlend_Line" and "BRepBlend_PointOnRst" to "BRepBlend" package. And some other minor changes were done. Field "myPntOn2S" was deleted from "BRepApprox_ApproxLine" class. Therefore BRepApprox_ApproxLine::Point(...) method was a little changed.
This commit is contained in:
@@ -19,7 +19,7 @@ package Blend
|
||||
uses IntSurf,
|
||||
TColgp,
|
||||
TColStd,
|
||||
Adaptor2d,
|
||||
Adaptor2d,
|
||||
gp,
|
||||
TopAbs,
|
||||
math,
|
||||
@@ -54,12 +54,6 @@ is
|
||||
|
||||
|
||||
class Point;
|
||||
|
||||
generic class Extremity;
|
||||
|
||||
generic class PointOnRst;
|
||||
|
||||
generic class Line;
|
||||
|
||||
generic class Walking;
|
||||
|
||||
|
@@ -25,15 +25,10 @@ generic class CSWalking from Blend
|
||||
TheCurveTool as any;
|
||||
TheTopolTool as Transient;
|
||||
TheBlendTool as any;
|
||||
ThePointOnRst as any; -- as PointOnRst from Blend(TheArc)
|
||||
ThePointOnRst as any;
|
||||
TheSeqPointOnRst as any;
|
||||
TheExtremity as any; -- as Extremity from Blend(TheVertex,TheArc,
|
||||
-- ThePointOnRst,TheSeqPointOnRst)
|
||||
TheLine as Transient) -- as Line from Blend(TheVertex,TheArc,
|
||||
-- ThePointOnRst,TheSeqPointOnRst,
|
||||
-- TheExtremity)
|
||||
|
||||
|
||||
TheExtremity as any;
|
||||
TheLine as Transient)
|
||||
|
||||
---Purpose:
|
||||
|
||||
|
@@ -1,241 +0,0 @@
|
||||
-- Created on: 1994-01-25
|
||||
-- Created by: Jacques GOUSSARD
|
||||
-- Copyright (c) 1994-1999 Matra Datavision
|
||||
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
--
|
||||
-- This file is part of Open CASCADE Technology software library.
|
||||
--
|
||||
-- This library is free software; you can redistribute it and/or modify it under
|
||||
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
-- by the Free Software Foundation, with special exception defined in the file
|
||||
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
-- distribution for complete text of the license and disclaimer of any warranty.
|
||||
--
|
||||
-- Alternatively, this file may be used under the terms of Open CASCADE
|
||||
-- commercial license or contractual agreement.
|
||||
|
||||
generic class Extremity from Blend
|
||||
(TheVertex as any;
|
||||
TheArc as any;
|
||||
ThePointOnRst as any; -- as PointOnRst from Blend(TheArc)
|
||||
TheSequenceOfPointOnRst as any)
|
||||
|
||||
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses Pnt from gp,
|
||||
Vec from gp,
|
||||
Transition from IntSurf
|
||||
|
||||
|
||||
raises DomainError from Standard,
|
||||
OutOfRange from Standard
|
||||
|
||||
is
|
||||
|
||||
Create
|
||||
|
||||
returns Extremity from Blend;
|
||||
|
||||
|
||||
Create(P: Pnt from gp;
|
||||
U,V,Param: Real from Standard; Tol: Real from Standard)
|
||||
---Purpose: Creates an extremity on a surface
|
||||
returns Extremity from Blend;
|
||||
|
||||
|
||||
Create(P: Pnt from gp;
|
||||
U,V,Param: Real from Standard; Tol: Real from Standard;
|
||||
Vtx: TheVertex)
|
||||
---Purpose: Creates an extremity on a surface. This extremity matches
|
||||
-- the vertex <Vtx>.
|
||||
|
||||
returns Extremity from Blend;
|
||||
|
||||
|
||||
Create(P: Pnt from gp;
|
||||
W, Param: Real from Standard; Tol: Real from Standard)
|
||||
---Purpose: Creates an extremity on a curve
|
||||
returns Extremity from Blend;
|
||||
|
||||
|
||||
SetValue(me: in out; P: Pnt from gp;
|
||||
U,V,Param : Real from Standard;
|
||||
Tol: Real from Standard)
|
||||
---Purpose: Set the values for an extremity on a surface.
|
||||
is static;
|
||||
|
||||
|
||||
SetValue(me: in out; P: Pnt from gp;
|
||||
U,V,Param: Real from Standard;
|
||||
Tol: Real from Standard; Vtx: TheVertex)
|
||||
---Purpose: Set the values for an extremity on a surface.This
|
||||
-- extremity matches the vertex <Vtx>.
|
||||
is static;
|
||||
|
||||
|
||||
SetValue(me: in out; P: Pnt from gp;
|
||||
W,Param: Real from Standard;
|
||||
Tol: Real from Standard)
|
||||
---Purpose: Set the values for an extremity on curve.
|
||||
is static;
|
||||
|
||||
|
||||
Value(me)
|
||||
|
||||
---Purpose: This method returns the value of the point in 3d space.
|
||||
|
||||
returns Pnt from gp
|
||||
---C++: inline
|
||||
---C++: return const&
|
||||
|
||||
is static;
|
||||
|
||||
SetTangent(me: in out; Tangent : Vec from gp)
|
||||
---Purpose: Set the tangent vector for an extremity on a
|
||||
-- surface.
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
HasTangent(me)
|
||||
|
||||
---Purpose: Returns TRUE if the Tangent is stored.
|
||||
|
||||
returns Boolean from Standard
|
||||
---C++: inline
|
||||
|
||||
is static;
|
||||
|
||||
Tangent(me)
|
||||
|
||||
---Purpose: This method returns the value of tangent in 3d
|
||||
-- space.
|
||||
|
||||
returns Vec from gp
|
||||
---C++: inline
|
||||
---C++: return const&
|
||||
|
||||
is static;
|
||||
|
||||
Tolerance(me)
|
||||
|
||||
---Purpose: This method returns the fuzziness on the point
|
||||
-- in 3d space.
|
||||
|
||||
returns Real from Standard
|
||||
---C++: inline
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
|
||||
-- methods for an extremity on a surface
|
||||
|
||||
SetVertex(me: in out; V: TheVertex)
|
||||
---Purpose: Set the values for an extremity on a curve.
|
||||
is static;
|
||||
|
||||
|
||||
AddArc(me: in out; A: TheArc; Param: Real from Standard;
|
||||
TLine, TArc: Transition from IntSurf)
|
||||
|
||||
---Purpose: Sets the values of a point which is on the arc
|
||||
-- A, at parameter Param.
|
||||
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
Parameters(me; U,V: out Real from Standard)
|
||||
|
||||
---Purpose: This method returns the parameters of the point
|
||||
-- on the concerned surface.
|
||||
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
|
||||
IsVertex(me)
|
||||
|
||||
---Purpose: Returns Standard_True when the point coincide with
|
||||
-- an existing vertex.
|
||||
|
||||
returns Boolean from Standard
|
||||
---C++: inline
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
Vertex(me)
|
||||
|
||||
---Purpose: Returns the vertex when IsVertex returns Standard_True.
|
||||
|
||||
returns any TheVertex
|
||||
---C++: inline
|
||||
---C++: return const&
|
||||
|
||||
raises DomainError from Standard
|
||||
--- The exception is raised when IsVertex returns Standard_False
|
||||
is static;
|
||||
|
||||
|
||||
NbPointOnRst(me)
|
||||
|
||||
---Purpose: Returns the number of arc containing the extremity.
|
||||
-- If the method returns 0, the point is inside the
|
||||
-- surface.
|
||||
-- Otherwise, the extremity lies on at least 1 arc,
|
||||
-- and all the information (arc, parameter, transitions)
|
||||
-- are given by the point on restriction (PointOnRst)
|
||||
-- returned by the next method.
|
||||
|
||||
returns Integer from Standard
|
||||
---C++: inline
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
PointOnRst(me; Index: Integer from Standard)
|
||||
|
||||
---Purpose:
|
||||
|
||||
returns any ThePointOnRst
|
||||
---C++: inline
|
||||
---C++: return const&
|
||||
|
||||
raises OutOfRange from Standard
|
||||
--- The exception is raised when Index <=0 or Index > NbPointOnRst
|
||||
is static;
|
||||
|
||||
|
||||
-- method for an extremity on a curve
|
||||
|
||||
Parameter(me)
|
||||
|
||||
returns Real from Standard
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
-- method for the parameter on the guide
|
||||
ParameterOnGuide(me)
|
||||
|
||||
returns Real from Standard
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
fields
|
||||
vtx : TheVertex;
|
||||
seqpt : TheSequenceOfPointOnRst;
|
||||
pt : Pnt from gp;
|
||||
tang : Vec from gp;
|
||||
param : Real from Standard;
|
||||
u : Real from Standard;
|
||||
v : Real from Standard;
|
||||
tol : Real from Standard;
|
||||
isvtx : Boolean from Standard;
|
||||
hastang: Boolean from Standard;
|
||||
|
||||
end Extremity;
|
||||
|
||||
|
@@ -1,120 +0,0 @@
|
||||
// Copyright (c) 1995-1999 Matra Datavision
|
||||
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
Blend_Extremity::Blend_Extremity ():
|
||||
pt(gp_Pnt(0,0,0)),
|
||||
tang(gp_Vec(0,0,0)),
|
||||
param(0.0), u(0.0), v(0.0), tol(0.0),
|
||||
isvtx(Standard_False), hastang(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
Blend_Extremity::Blend_Extremity (const gp_Pnt& P,
|
||||
const Standard_Real U,
|
||||
const Standard_Real V,
|
||||
const Standard_Real Param,
|
||||
const Standard_Real Tol) :
|
||||
pt(P),
|
||||
tang(gp_Vec(0,0,0)),
|
||||
param(Param),u(U),v(V),tol(Tol),isvtx(Standard_False),
|
||||
hastang(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Blend_Extremity::Blend_Extremity (const gp_Pnt& P,
|
||||
const Standard_Real U,
|
||||
const Standard_Real V,
|
||||
const Standard_Real Param,
|
||||
const Standard_Real Tol,
|
||||
const TheVertex& Vtx) :
|
||||
vtx(Vtx),pt(P),
|
||||
tang(gp_Vec(0,0,0)),
|
||||
param(Param),u(U),v(V),tol(Tol),isvtx(Standard_True),
|
||||
hastang(Standard_False)
|
||||
{}
|
||||
|
||||
|
||||
Blend_Extremity::Blend_Extremity (const gp_Pnt& P,
|
||||
const Standard_Real W,
|
||||
const Standard_Real Param,
|
||||
const Standard_Real Tol) :
|
||||
pt(P),
|
||||
tang(gp_Vec(0,0,0)),
|
||||
param(Param),u(W),tol(Tol),isvtx(Standard_False),
|
||||
hastang(Standard_False)
|
||||
{}
|
||||
|
||||
|
||||
void Blend_Extremity::SetValue (const gp_Pnt& P,
|
||||
const Standard_Real U,
|
||||
const Standard_Real V,
|
||||
const Standard_Real Param,
|
||||
const Standard_Real Tol)
|
||||
{
|
||||
pt = P;
|
||||
u = U;
|
||||
v = V;
|
||||
param = Param;
|
||||
tol = Tol;
|
||||
isvtx = Standard_False;
|
||||
seqpt.Clear();
|
||||
}
|
||||
|
||||
|
||||
void Blend_Extremity::SetValue (const gp_Pnt& P,
|
||||
const Standard_Real U,
|
||||
const Standard_Real V,
|
||||
const Standard_Real Param,
|
||||
const Standard_Real Tol,
|
||||
const TheVertex& Vtx)
|
||||
{
|
||||
pt = P;
|
||||
u = U;
|
||||
v = V;
|
||||
param = Param;
|
||||
tol = Tol;
|
||||
isvtx = Standard_True;
|
||||
vtx = Vtx;
|
||||
seqpt.Clear();
|
||||
}
|
||||
|
||||
void Blend_Extremity::SetValue (const gp_Pnt& P,
|
||||
const Standard_Real W,
|
||||
const Standard_Real Param,
|
||||
const Standard_Real Tol)
|
||||
{
|
||||
pt = P;
|
||||
u = W;
|
||||
param = Param;
|
||||
tol = Tol;
|
||||
isvtx = Standard_False;
|
||||
seqpt.Clear();
|
||||
}
|
||||
|
||||
|
||||
void Blend_Extremity::SetVertex (const TheVertex& V)
|
||||
{
|
||||
isvtx = Standard_True;
|
||||
vtx = V;
|
||||
}
|
||||
|
||||
void Blend_Extremity::AddArc (const TheArc& A,
|
||||
const Standard_Real Param,
|
||||
const IntSurf_Transition& TLine,
|
||||
const IntSurf_Transition& TArc)
|
||||
{
|
||||
seqpt.Append(ThePointOnRst(A,Param,TLine,TArc));
|
||||
}
|
||||
|
@@ -1,86 +0,0 @@
|
||||
// Copyright (c) 1995-1999 Matra Datavision
|
||||
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
inline const gp_Pnt& Blend_Extremity::Value () const
|
||||
{
|
||||
return pt;
|
||||
}
|
||||
|
||||
inline void Blend_Extremity::SetTangent(const gp_Vec& Tangent)
|
||||
{
|
||||
hastang = Standard_True;
|
||||
tang = Tangent;
|
||||
}
|
||||
|
||||
inline Standard_Boolean Blend_Extremity::HasTangent () const
|
||||
{
|
||||
return hastang;
|
||||
}
|
||||
|
||||
inline const gp_Vec& Blend_Extremity::Tangent () const
|
||||
{
|
||||
if (!hastang) {Standard_DomainError::Raise();}
|
||||
return tang;
|
||||
}
|
||||
|
||||
inline void Blend_Extremity::Parameters(Standard_Real& U,
|
||||
Standard_Real& V) const
|
||||
{
|
||||
U = u;
|
||||
V = v;
|
||||
}
|
||||
|
||||
inline Standard_Real Blend_Extremity::Tolerance() const
|
||||
{
|
||||
return tol;
|
||||
}
|
||||
|
||||
|
||||
inline Standard_Boolean Blend_Extremity::IsVertex() const
|
||||
{
|
||||
return isvtx;
|
||||
}
|
||||
|
||||
|
||||
inline const TheVertex& Blend_Extremity::Vertex () const
|
||||
{
|
||||
if (!isvtx) {Standard_DomainError::Raise();}
|
||||
return vtx;
|
||||
}
|
||||
|
||||
inline Standard_Integer Blend_Extremity::NbPointOnRst () const
|
||||
{
|
||||
return seqpt.Length();
|
||||
}
|
||||
|
||||
inline const ThePointOnRst& Blend_Extremity::PointOnRst
|
||||
(const Standard_Integer Index) const
|
||||
{
|
||||
return seqpt(Index);
|
||||
}
|
||||
|
||||
inline Standard_Real Blend_Extremity::Parameter() const
|
||||
|
||||
{
|
||||
return u;
|
||||
}
|
||||
|
||||
inline Standard_Real Blend_Extremity::ParameterOnGuide() const
|
||||
|
||||
{
|
||||
return param;
|
||||
}
|
||||
|
@@ -1,244 +0,0 @@
|
||||
-- Created on: 1993-12-02
|
||||
-- Created by: Jacques GOUSSARD
|
||||
-- Copyright (c) 1993-1999 Matra Datavision
|
||||
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
--
|
||||
-- This file is part of Open CASCADE Technology software library.
|
||||
--
|
||||
-- This library is free software; you can redistribute it and/or modify it under
|
||||
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
-- by the Free Software Foundation, with special exception defined in the file
|
||||
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
-- distribution for complete text of the license and disclaimer of any warranty.
|
||||
--
|
||||
-- Alternatively, this file may be used under the terms of Open CASCADE
|
||||
-- commercial license or contractual agreement.
|
||||
|
||||
generic class Line from Blend
|
||||
(TheVertex as any;
|
||||
TheArc as any;
|
||||
ThePointOnRst as any; -- as PointOnRst from Blend(TheArc)
|
||||
TheSequenceOfPointOnRst as any;
|
||||
TheExtremity as any) -- as Extremity from Blend (TheVertex,TheArc,
|
||||
-- ThePointOnRst,TheSequenceOfPointOnRst)
|
||||
|
||||
|
||||
|
||||
inherits TShared from MMgt
|
||||
|
||||
|
||||
uses Point from Blend,
|
||||
SequenceOfPoint from Blend,
|
||||
TypeTrans from IntSurf
|
||||
|
||||
|
||||
raises OutOfRange from Standard
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create
|
||||
|
||||
returns mutable Line from Blend;
|
||||
|
||||
|
||||
|
||||
Clear(me: mutable)
|
||||
|
||||
---Purpose: Clears the content of the line.
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
|
||||
Append(me: mutable; P: Point from Blend)
|
||||
|
||||
---Purpose: Adds a point in the line.
|
||||
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
|
||||
Prepend(me: mutable; P: Point from Blend)
|
||||
|
||||
---Purpose: Adds a point in the line at the first place.
|
||||
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
InsertBefore(me : mutable;
|
||||
Index : Integer from Standard;
|
||||
P : Point from Blend)
|
||||
|
||||
---Purpose: Adds a point in the line at the first place.
|
||||
|
||||
---C++: inline
|
||||
is static;
|
||||
|
||||
|
||||
Remove(me: mutable; FromIndex,ToIndex: Integer from Standard)
|
||||
|
||||
---Purpose: Removes from <me> all the items of
|
||||
-- positions between <FromIndex> and <ToIndex>.
|
||||
-- Raises an exception if the indices are out of bounds.
|
||||
---C++: inline
|
||||
raises OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
|
||||
Set(me: mutable; TranS1,TranS2: TypeTrans from IntSurf)
|
||||
|
||||
---Purpose: Sets the value of the transition of the line on S1 and
|
||||
-- the line on S2.
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
Set(me: mutable; Trans: TypeTrans from IntSurf)
|
||||
|
||||
---Purpose: Sets the value of the transition of the line on a surface
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
SetStartPoints(me: mutable; StartPt1,StartPt2: TheExtremity)
|
||||
|
||||
---Purpose: Sets the values of the start points for the line.
|
||||
---C++: inline
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
SetEndPoints(me: mutable; EndPt1,EndPt2: TheExtremity)
|
||||
|
||||
---Purpose: Sets tne values of the end points for the line.
|
||||
|
||||
---C++: inline
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
NbPoints(me)
|
||||
|
||||
---Purpose: Returns the number of points in the line.
|
||||
|
||||
returns Integer from Standard
|
||||
---C++: inline
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
Point(me; Index: Integer from Standard)
|
||||
|
||||
---Purpose: Returns the point of range Index.
|
||||
|
||||
returns Point from Blend
|
||||
---C++: inline
|
||||
---C++: return const&
|
||||
|
||||
raises OutOfRange from Standard
|
||||
--- The exception OutOfRange is raised when Index <=0 or
|
||||
-- Index > NbPoints
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
TransitionOnS1(me)
|
||||
|
||||
---Purpose: Returns the type of the transition of the line defined
|
||||
-- on the first surface. The transition is "constant"
|
||||
-- along the line.
|
||||
-- The transition is IN if the line is oriented in such
|
||||
-- a way that the system of vectors (N,DRac,T) is
|
||||
-- right-handed, where
|
||||
-- N is the normal to the first surface at a point P,
|
||||
-- DRac is a vector tangent to the blending patch,
|
||||
-- oriented towards the valid part of this patch,
|
||||
-- T is the tangent to the line on S1 at P.
|
||||
-- The transitioon is OUT when the system of vectors is
|
||||
-- left-handed.
|
||||
|
||||
returns TypeTrans from IntSurf
|
||||
---C++: inline
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
TransitionOnS2(me)
|
||||
|
||||
---Purpose: Returns the type of the transition of the line defined
|
||||
-- on the second surface. The transition is "constant"
|
||||
-- along the line.
|
||||
|
||||
returns TypeTrans from IntSurf
|
||||
---C++: inline
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
StartPointOnFirst(me)
|
||||
|
||||
---Purpose: Returns the start point on S1.
|
||||
|
||||
returns TheExtremity
|
||||
---C++: inline
|
||||
---C++: return const&
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
StartPointOnSecond(me)
|
||||
|
||||
---Purpose: Returns the start point on S2
|
||||
|
||||
returns TheExtremity
|
||||
---C++: inline
|
||||
---C++: return const&
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
EndPointOnFirst(me)
|
||||
|
||||
---Purpose: Returns the end point on S1.
|
||||
|
||||
returns TheExtremity
|
||||
---C++: inline
|
||||
---C++: return const&
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
EndPointOnSecond(me)
|
||||
|
||||
---Purpose: Returns the point on S2.
|
||||
|
||||
returns TheExtremity
|
||||
---C++: inline
|
||||
---C++: return const&
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
TransitionOnS(me)
|
||||
|
||||
---Purpose: Returns the type of the transition of the line defined
|
||||
-- on the surface.
|
||||
|
||||
returns TypeTrans from IntSurf
|
||||
---C++: inline
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
fields
|
||||
seqpt : SequenceOfPoint from Blend;
|
||||
tras1 : TypeTrans from IntSurf;
|
||||
tras2 : TypeTrans from IntSurf;
|
||||
stp1 : TheExtremity;
|
||||
stp2 : TheExtremity;
|
||||
endp1 : TheExtremity;
|
||||
endp2 : TheExtremity;
|
||||
hass1 : Boolean from Standard;
|
||||
hass2 : Boolean from Standard;
|
||||
end;
|
@@ -1,45 +0,0 @@
|
||||
// Copyright (c) 1995-1999 Matra Datavision
|
||||
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
Blend_Line::Blend_Line ():
|
||||
tras1(IntSurf_Undecided),tras2(IntSurf_Undecided),
|
||||
hass1(Standard_False),hass2(Standard_False)
|
||||
{}
|
||||
|
||||
|
||||
void Blend_Line::Clear ()
|
||||
{
|
||||
seqpt.Clear();
|
||||
hass1 = Standard_False;
|
||||
hass2 = Standard_False;
|
||||
tras1 = IntSurf_Undecided;
|
||||
tras2 = IntSurf_Undecided;
|
||||
}
|
||||
|
||||
void Blend_Line::Set(const IntSurf_TypeTrans TranS1,
|
||||
const IntSurf_TypeTrans TranS2)
|
||||
{
|
||||
hass1 = Standard_True;
|
||||
hass2 = Standard_True;
|
||||
tras1 = TranS1;
|
||||
tras2 = TranS2;
|
||||
}
|
||||
|
||||
void Blend_Line::Set(const IntSurf_TypeTrans Trans)
|
||||
{
|
||||
hass1 = Standard_True;
|
||||
hass2 = Standard_False;
|
||||
tras1 = Trans;
|
||||
}
|
||||
|
@@ -1,105 +0,0 @@
|
||||
// Copyright (c) 1995-1999 Matra Datavision
|
||||
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Blend_SequenceOfPoint.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
|
||||
inline void Blend_Line::Append(const Blend_Point& P)
|
||||
{
|
||||
seqpt.Append(P);
|
||||
}
|
||||
|
||||
inline void Blend_Line::Prepend(const Blend_Point& P)
|
||||
{
|
||||
seqpt.Prepend(P);
|
||||
}
|
||||
|
||||
inline void Blend_Line::InsertBefore(const Standard_Integer Index,
|
||||
const Blend_Point& P)
|
||||
{
|
||||
seqpt.InsertBefore(Index, P);
|
||||
}
|
||||
|
||||
inline void Blend_Line::Remove(const Standard_Integer FromIndex,
|
||||
const Standard_Integer ToIndex)
|
||||
{
|
||||
seqpt.Remove(FromIndex,ToIndex);
|
||||
}
|
||||
|
||||
inline void Blend_Line::SetStartPoints(const TheExtremity& StartPtOnS1,
|
||||
const TheExtremity& StartPtOnS2)
|
||||
|
||||
{
|
||||
stp1 = StartPtOnS1;
|
||||
stp2 = StartPtOnS2;
|
||||
}
|
||||
|
||||
inline void Blend_Line::SetEndPoints(const TheExtremity& EndPtOnS1,
|
||||
const TheExtremity& EndPtOnS2)
|
||||
|
||||
{
|
||||
endp1 = EndPtOnS1;
|
||||
endp2 = EndPtOnS2;
|
||||
}
|
||||
|
||||
inline Standard_Integer Blend_Line::NbPoints () const
|
||||
{
|
||||
return seqpt.Length();
|
||||
}
|
||||
|
||||
inline const Blend_Point& Blend_Line::Point(const Standard_Integer Index) const
|
||||
{
|
||||
return seqpt(Index);
|
||||
}
|
||||
|
||||
inline IntSurf_TypeTrans Blend_Line::TransitionOnS1 () const
|
||||
{
|
||||
if (!hass1) {Standard_DomainError::Raise();}
|
||||
return tras1;
|
||||
}
|
||||
|
||||
inline IntSurf_TypeTrans Blend_Line::TransitionOnS2 () const
|
||||
{
|
||||
if (!hass2) {Standard_DomainError::Raise();}
|
||||
return tras2;
|
||||
}
|
||||
|
||||
inline const TheExtremity& Blend_Line::StartPointOnFirst() const
|
||||
{
|
||||
return stp1;
|
||||
}
|
||||
|
||||
inline const TheExtremity& Blend_Line::StartPointOnSecond() const
|
||||
{
|
||||
return stp2;
|
||||
}
|
||||
|
||||
inline const TheExtremity& Blend_Line::EndPointOnFirst() const
|
||||
{
|
||||
return endp1;
|
||||
}
|
||||
|
||||
inline const TheExtremity& Blend_Line::EndPointOnSecond() const
|
||||
{
|
||||
return endp2;
|
||||
}
|
||||
|
||||
inline IntSurf_TypeTrans Blend_Line::TransitionOnS () const
|
||||
{
|
||||
if (!hass1) {Standard_DomainError::Raise();}
|
||||
return tras1;
|
||||
}
|
||||
|
||||
|
@@ -1,117 +0,0 @@
|
||||
-- Created on: 1993-12-02
|
||||
-- Created by: Jacques GOUSSARD
|
||||
-- Copyright (c) 1993-1999 Matra Datavision
|
||||
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
--
|
||||
-- This file is part of Open CASCADE Technology software library.
|
||||
--
|
||||
-- This library is free software; you can redistribute it and/or modify it under
|
||||
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
-- by the Free Software Foundation, with special exception defined in the file
|
||||
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
-- distribution for complete text of the license and disclaimer of any warranty.
|
||||
--
|
||||
-- Alternatively, this file may be used under the terms of Open CASCADE
|
||||
-- commercial license or contractual agreement.
|
||||
|
||||
generic class PointOnRst from Blend
|
||||
(TheArc as any)
|
||||
|
||||
|
||||
---Purpose: Definition of an intersection point between a line
|
||||
-- and a restriction on a surface.
|
||||
-- Such a point is contains geometrical informations (see
|
||||
-- the Value method) and logical informations.
|
||||
|
||||
|
||||
uses Transition from IntSurf
|
||||
|
||||
raises DomainError from Standard
|
||||
|
||||
is
|
||||
|
||||
|
||||
Create
|
||||
|
||||
---Purpose: Empty constructor.
|
||||
|
||||
returns PointOnRst from Blend;
|
||||
|
||||
|
||||
Create( A: TheArc; Param: Real from Standard;
|
||||
TLine, TArc: Transition from IntSurf)
|
||||
|
||||
---Purpose: Creates the PointOnRst on the arc A, at parameter Param,
|
||||
-- with the transition TLine on the walking line, and
|
||||
-- TArc on the arc A.
|
||||
|
||||
returns PointOnRst from Blend;
|
||||
|
||||
|
||||
|
||||
SetArc(me: in out; A: TheArc; Param: Real from Standard;
|
||||
TLine, TArc: Transition from IntSurf)
|
||||
|
||||
---Purpose: Sets the values of a point which is on the arc
|
||||
-- A, at parameter Param.
|
||||
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
|
||||
Arc(me)
|
||||
|
||||
---Purpose: Returns the arc of restriction containing the
|
||||
-- vertex.
|
||||
|
||||
returns any TheArc
|
||||
---C++: return const&
|
||||
---C++: inline
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
TransitionOnLine(me)
|
||||
|
||||
---Purpose: Returns the transition of the point on the
|
||||
-- line on surface.
|
||||
|
||||
returns Transition from IntSurf
|
||||
---C++: return const&
|
||||
---C++: inline
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
TransitionOnArc(me)
|
||||
|
||||
---Purpose: Returns the transition of the point on the arc
|
||||
-- returned by Arc().
|
||||
|
||||
returns Transition from IntSurf
|
||||
---C++: return const&
|
||||
---C++: inline
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
ParameterOnArc(me)
|
||||
|
||||
---Purpose: Returns the parameter of the point on the
|
||||
-- arc returned by the method Arc().
|
||||
|
||||
returns Real from Standard
|
||||
---C++: inline
|
||||
|
||||
is static;
|
||||
|
||||
|
||||
fields
|
||||
|
||||
arc : TheArc;
|
||||
traline : Transition from IntSurf;
|
||||
traarc : Transition from IntSurf;
|
||||
prm : Real from Standard;
|
||||
|
||||
end PointOnRst;
|
@@ -1,36 +0,0 @@
|
||||
// Copyright (c) 1995-1999 Matra Datavision
|
||||
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
Blend_PointOnRst::Blend_PointOnRst () {}
|
||||
|
||||
|
||||
Blend_PointOnRst::Blend_PointOnRst(const TheArc& A,
|
||||
const Standard_Real Param,
|
||||
const IntSurf_Transition& TLine,
|
||||
const IntSurf_Transition& TArc):
|
||||
|
||||
arc(A),traline(TLine),traarc(TArc),prm(Param)
|
||||
{}
|
||||
|
||||
void Blend_PointOnRst::SetArc(const TheArc& A,
|
||||
const Standard_Real Param,
|
||||
const IntSurf_Transition& TLine,
|
||||
const IntSurf_Transition& TArc)
|
||||
{
|
||||
arc = A;
|
||||
prm = Param;
|
||||
traline = TLine;
|
||||
traarc = TArc;
|
||||
}
|
||||
|
@@ -1,36 +0,0 @@
|
||||
// Copyright (c) 1995-1999 Matra Datavision
|
||||
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
inline const TheArc& Blend_PointOnRst::Arc () const
|
||||
{
|
||||
return arc;
|
||||
}
|
||||
|
||||
inline const IntSurf_Transition& Blend_PointOnRst::TransitionOnLine () const
|
||||
{
|
||||
return traline;
|
||||
}
|
||||
|
||||
inline const IntSurf_Transition& Blend_PointOnRst::TransitionOnArc () const
|
||||
{
|
||||
return traarc;
|
||||
}
|
||||
|
||||
inline Standard_Real Blend_PointOnRst::ParameterOnArc () const
|
||||
{
|
||||
return prm;
|
||||
}
|
||||
|
@@ -25,14 +25,10 @@ generic class Walking from Blend
|
||||
TheCurveTool as any;
|
||||
TheTopolTool as Transient;
|
||||
TheBlendTool as any;
|
||||
ThePointOnRst as any; -- as PointOnRst from Blend(TheArc)
|
||||
ThePointOnRst as any;
|
||||
TheSeqPointOnRst as any;
|
||||
TheExtremity as any; -- as Extremity from Blend(TheVertex,TheArc,
|
||||
-- ThePointOnRst,TheSeqPointOnRst)
|
||||
TheLine as Transient) -- as Line from Blend(TheVertex,TheArc,
|
||||
-- ThePointOnRst,TheSeqPointOnRst,
|
||||
-- TheExtremity)
|
||||
|
||||
TheExtremity as any;
|
||||
TheLine as Transient)
|
||||
|
||||
|
||||
---Purpose:
|
||||
|
Reference in New Issue
Block a user