mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-16 22:48:54 +08:00
101 lines
3.1 KiB
Plaintext
Executable File
101 lines
3.1 KiB
Plaintext
Executable File
-- Created on: 1993-06-23
|
|
-- Created by: Remi LEQUETTE
|
|
-- Copyright (c) 1993-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 FaceBuilder from BRepPrim
|
|
|
|
---Purpose: The FaceBuilder is an algorithm to build a BRep
|
|
-- Face from a Geom Surface.
|
|
--
|
|
-- The face covers the whole surface or the area
|
|
-- delimited by UMin, UMax, VMin, VMax
|
|
|
|
uses
|
|
Surface from Geom,
|
|
Face from TopoDS,
|
|
Edge from TopoDS,
|
|
Vertex from TopoDS,
|
|
Builder from BRep
|
|
|
|
raises
|
|
ConstructionError from Standard,
|
|
OutOfRange from Standard
|
|
|
|
is
|
|
Create returns FaceBuilder from BRepPrim;
|
|
|
|
Create(B : Builder from BRep;
|
|
S : Surface from Geom) returns FaceBuilder from BRepPrim;
|
|
|
|
Create(B : Builder from BRep;
|
|
S : Surface from Geom;
|
|
UMin, UMax, VMin, VMax : Real) returns FaceBuilder from BRepPrim
|
|
raises ConstructionError from Standard; -- if UV are outside the surface
|
|
|
|
Init(me : in out;
|
|
B : Builder from BRep;
|
|
S : Surface from Geom)
|
|
is static;
|
|
|
|
Init(me : in out;
|
|
B : Builder from BRep;
|
|
S : Surface from Geom;
|
|
UMin, UMax, VMin, VMax : Real)
|
|
raises ConstructionError from Standard -- if UV are outside the surface
|
|
is static;
|
|
|
|
Face(me) returns Face from TopoDS
|
|
---C++: return const &
|
|
--
|
|
---C++: alias "Standard_EXPORT operator TopoDS_Face();"
|
|
is static;
|
|
|
|
Edge(me; I : Integer) returns Edge from TopoDS
|
|
---Purpose: Returns the edge of index <I>
|
|
-- 1 - Edge VMin
|
|
-- 2 - Edge UMax
|
|
-- 3 - Edge VMax
|
|
-- 4 - Edge UMin
|
|
--
|
|
---C++: return const &
|
|
raises OutOfRange from Standard -- if I < 1 or I > 4
|
|
is static;
|
|
|
|
Vertex(me; I : Integer) returns Vertex from TopoDS
|
|
---Purpose: Returns the vertex of index <I>
|
|
-- 1 - Vertex UMin,VMin
|
|
-- 2 - Vertex UMax,VMin
|
|
-- 3 - Vertex UMax,VMax
|
|
-- 4 - Vertex UMin,VMax
|
|
--
|
|
---C++: return const &
|
|
raises OutOfRange from Standard -- if I < 1 or I > 4
|
|
is static;
|
|
|
|
|
|
fields
|
|
myVertex : Vertex from TopoDS [4];
|
|
myEdges : Edge from TopoDS [4];
|
|
myFace : Face from TopoDS;
|
|
|
|
end FaceBuilder;
|