mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-26 10:16:18 +08:00
108 lines
4.5 KiB
Plaintext
Executable File
108 lines
4.5 KiB
Plaintext
Executable File
-- Created on: 1999-06-21
|
|
-- Created by: Galina KULIKOVA
|
|
-- Copyright (c) 1999 Matra Datavision
|
|
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
--
|
|
-- The content of this file is subject to the Open CASCADE Technology Public
|
|
-- License Version 6.5 (the "License"). You may not use the content of this file
|
|
-- except in compliance with the License. Please obtain a copy of the License
|
|
-- at http://www.opencascade.org and read it completely before using this file.
|
|
--
|
|
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
--
|
|
-- The Original Code and all software distributed under the License is
|
|
-- distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
-- Initial Developer hereby disclaims all such warranties, including without
|
|
-- limitation, any warranties of merchantability, fitness for a particular
|
|
-- purpose or non-infringement. Please see the License for the specific terms
|
|
-- and conditions governing the rights and limitations under the License.
|
|
|
|
|
|
|
|
class TransferParametersProj from ShapeAnalysis inherits TransferParameters from ShapeAnalysis
|
|
|
|
---Purpose: This tool is used for transferring parameters
|
|
-- from 3d curve of the edge to pcurve and vice versa.
|
|
-- This tool transfers parameters with help of
|
|
-- projection points from curve 3d on curve 2d and
|
|
-- vice versa
|
|
uses
|
|
|
|
Edge from TopoDS,
|
|
Face from TopoDS,
|
|
HSequenceOfReal from TColStd,
|
|
Location from TopLoc,
|
|
Curve from Geom,
|
|
Curve from Geom2d,
|
|
CurveOnSurface from Adaptor3d,
|
|
Vertex from TopoDS
|
|
is
|
|
|
|
Create returns mutable TransferParametersProj from ShapeAnalysis;
|
|
---Purpose: Creats empty constructor.
|
|
|
|
Create(E: Edge from TopoDS; F: Face from TopoDS)
|
|
returns mutable TransferParametersProj from ShapeAnalysis;
|
|
---Purpose:
|
|
|
|
Init(me: mutable; E: Edge from TopoDS; F: Face from TopoDS ) is redefined;
|
|
---Purpose:
|
|
|
|
Perform(me: mutable; Papams: HSequenceOfReal from TColStd; To2d: Boolean)
|
|
returns HSequenceOfReal from TColStd is redefined;
|
|
---Purpose: Transfers parameters given by sequence Params from 3d curve
|
|
-- to pcurve (if To2d is True) or back (if To2d is False)
|
|
|
|
Perform(me: mutable; Param: Real; To2d: Boolean)
|
|
returns Real is redefined;
|
|
---Purpose:Transfers parameter given by Param from 3d curve
|
|
-- to pcurve (if To2d is True) or back (if To2d is False)
|
|
|
|
ForceProjection (me: mutable) returns Boolean;
|
|
---Purpose: Returns modifiable flag forcing projection
|
|
-- If it is False (default), projection is done only
|
|
-- if edge is not SameParameter or if tolerance of edge
|
|
-- is greater than MaxTolerance()
|
|
---C++: return &
|
|
|
|
TransferRange(me: mutable; newEdge: in out Edge from TopoDS;
|
|
prevPar: Real;
|
|
currPar: Real;
|
|
Is2d : Boolean) is redefined;
|
|
---Purpose: Recomputes range of curves from NewEdge.
|
|
-- If Is2d equals True parameters are recomputed by curve2d else by curve3d.
|
|
|
|
IsSameRange(me) returns Boolean is redefined;
|
|
---Purpose: Returns False;
|
|
--
|
|
|
|
PreformSegment(me: mutable;Param :Real; To2d :Boolean;
|
|
First :Real; Last :Real)
|
|
returns Real is private;
|
|
|
|
CopyNMVertex(myclass; theVert: Vertex from TopoDS;
|
|
toedge: Edge from TopoDS;
|
|
fromedge: Edge from TopoDS ) returns Vertex from TopoDS;
|
|
---Purpose: Make a copy of non-manifold vertex theVert
|
|
-- (i.e. create new TVertex and replace PointRepresentations for this vertex
|
|
-- from fromedge to toedge. Other representations were copied)
|
|
|
|
CopyNMVertex(myclass; theVert: Vertex from TopoDS;
|
|
toFace: Face from TopoDS;
|
|
fromFace: Face from TopoDS ) returns Vertex from TopoDS;
|
|
---Purpose: Make a copy of non-manifold vertex theVert
|
|
-- (i.e. create new TVertex and replace PointRepresentations for this vertex
|
|
-- from fromFace to toFace. Other representations were copied)
|
|
fields
|
|
|
|
myCurve : Curve from Geom;
|
|
myCurve2d : Curve from Geom2d;
|
|
myAC3d : CurveOnSurface from Adaptor3d;
|
|
myPrecision : Real;
|
|
myLocation : Location from TopLoc;
|
|
myForceProj : Boolean;
|
|
myInitOK : Boolean;
|
|
|
|
end TransferParametersProj;
|