mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-15 21:57:45 +08:00
b311480ed5
Added appropriate copyright and license information in source files
173 lines
7.3 KiB
Plaintext
Executable File
173 lines
7.3 KiB
Plaintext
Executable File
-- Created on: 1995-01-27
|
|
-- Created by: Marie Jose MARTZ
|
|
-- Copyright (c) 1995-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 BRWire from BRepToIGES inherits BREntity from BRepToIGES
|
|
|
|
---Purpose: This class implements the transfer of Shape Entities
|
|
-- from Geom To IGES. These can be :
|
|
-- . Vertex
|
|
-- . Edge
|
|
-- . Wire
|
|
|
|
|
|
uses
|
|
|
|
Shape from TopoDS,
|
|
Vertex from TopoDS,
|
|
Edge from TopoDS,
|
|
Wire from TopoDS,
|
|
Face from TopoDS,
|
|
Surface from Geom,
|
|
Curve from Geom2d,
|
|
Location from TopLoc,
|
|
Pnt2d from gp,
|
|
IGESEntity from IGESData,
|
|
BREntity from BRepToIGES
|
|
|
|
|
|
is
|
|
|
|
Create returns BRWire from BRepToIGES;
|
|
|
|
|
|
Create (BR : BREntity from BRepToIGES)
|
|
returns BRWire from BRepToIGES;
|
|
|
|
|
|
TransferWire (me : in out;
|
|
start : Shape from TopoDS)
|
|
returns mutable IGESEntity from IGESData;
|
|
---Purpose : Transfert a Shape entity from TopoDS to IGES
|
|
-- this entity must be a Vertex or an Edge or a Wire.
|
|
-- If this Entity could not be converted,
|
|
-- this member returns a NullEntity.
|
|
|
|
|
|
TransferVertex (me : in out;
|
|
myvertex : Vertex from TopoDS)
|
|
returns mutable IGESEntity from IGESData;
|
|
---Purpose : Transfert a Vertex entity from TopoDS to IGES
|
|
-- If this Entity could not be converted,
|
|
-- this member returns a NullEntity.
|
|
|
|
|
|
TransferVertex (me : in out;
|
|
myvertex : Vertex from TopoDS;
|
|
myedge : Edge from TopoDS;
|
|
parameter : out Real from Standard)
|
|
returns mutable IGESEntity from IGESData;
|
|
---Purpose : Transfert a Vertex entity on an Edge from TopoDS to IGES
|
|
-- Returns the parameter of myvertex on myedge.
|
|
-- If this Entity could not be converted,
|
|
-- this member returns a NullEntity.
|
|
|
|
|
|
TransferVertex (me : in out;
|
|
myvertex : Vertex from TopoDS;
|
|
myedge : Edge from TopoDS;
|
|
myface : Face from TopoDS;
|
|
parameter : out Real from Standard)
|
|
returns mutable IGESEntity from IGESData;
|
|
---Purpose : Transfert a Vertex entity of an edge on a Face
|
|
-- from TopoDS to IGES
|
|
-- Returns the parameter of myvertex on the pcurve
|
|
-- of myedge on myface
|
|
-- If this Entity could not be converted,
|
|
-- this member returns a NullEntity.
|
|
|
|
|
|
TransferVertex (me : in out;
|
|
myvertex : Vertex from TopoDS;
|
|
myedge : Edge from TopoDS;
|
|
mysurface : Surface from Geom;
|
|
myloc : Location from TopLoc;
|
|
parameter : out Real from Standard)
|
|
returns mutable IGESEntity from IGESData;
|
|
---Purpose : Transfert a Vertex entity of an edge on a Surface
|
|
-- from TopoDS to IGES
|
|
-- Returns the parameter of myvertex on the pcurve
|
|
-- of myedge on mysurface
|
|
-- If this Entity could not be converted,
|
|
-- this member returns a NullEntity.
|
|
|
|
|
|
TransferVertex (me : in out;
|
|
myvertex : Vertex from TopoDS;
|
|
myface : Face from TopoDS;
|
|
mypoint : out Pnt2d from gp)
|
|
returns mutable IGESEntity from IGESData;
|
|
---Purpose : Transfert a Vertex entity on a Face from TopoDS to IGES
|
|
-- Returns the parameters of myvertex on myface
|
|
-- If this Entity could not be converted,
|
|
-- this member returns a NullEntity.
|
|
|
|
|
|
TransferEdge (me : in out;
|
|
myedge : Edge from TopoDS;
|
|
-- IsRevol : in Boolean from Standard
|
|
isBRepMode: in Boolean from Standard)
|
|
returns mutable IGESEntity from IGESData;
|
|
---Purpose : Transfert an Edge entity from TopoDS to IGES
|
|
-- If this Entity could not be converted,
|
|
-- this member returns a NullEntity.
|
|
-- isBRepMode indicates if write mode is BRep
|
|
-- (True when called from BRepToIGESBRep and False when from BRepToIGES)
|
|
-- If edge is REVERSED and isBRepMode is False 3D edge curve is reversed,
|
|
-- otherwise, not.
|
|
|
|
|
|
TransferEdge (me : in out;
|
|
myedge : Edge from TopoDS;
|
|
myface : Face from TopoDS;
|
|
length : in Real from Standard;
|
|
isBRepMode: in Boolean from Standard)
|
|
returns mutable IGESEntity from IGESData;
|
|
---Purpose : Transfert an Edge entity on a Face from TopoDS to IGES
|
|
-- If this Entity could not be converted,
|
|
-- this member returns a NullEntity.
|
|
-- isBRepMode indicates if write mode is BRep
|
|
-- (True when called from BRepToIGESBRep and False when from BRepToIGES)
|
|
-- passing into Transform2dCurve()
|
|
|
|
TransferWire (me : in out;
|
|
mywire : Wire from TopoDS)
|
|
returns mutable IGESEntity from IGESData;
|
|
---Purpose : Transfert a Wire entity from TopoDS to IGES
|
|
-- If this Entity could not be converted,
|
|
-- this member returns a NullEntity.
|
|
|
|
|
|
TransferWire (me : in out;
|
|
mywire : Wire from TopoDS;
|
|
myface : Face from TopoDS;
|
|
mycurve2d : out IGESEntity from IGESData;
|
|
length : in Real from Standard)
|
|
-- IsRevol : in Boolean from Standard
|
|
returns mutable IGESEntity from IGESData;
|
|
---Purpose : Transfert a Wire entity from TopoDS to IGES.
|
|
-- Returns the curve associated to mywire in
|
|
-- the parametric space of myface.
|
|
-- If this Entity could not be converted,
|
|
-- this member returns a NullEntity.
|
|
-- Parameter IsRevol is not used anymore
|
|
|
|
end BRWire;
|