mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0024002: Overall code and build procedure refactoring -- automatic
Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl": - WOK-generated header files from inc and sources from drv are moved to src - CDL files removed - All packages are converted to nocdlpack
This commit is contained in:
5
src/TopAbs/FILES
Normal file
5
src/TopAbs/FILES
Normal file
@@ -0,0 +1,5 @@
|
||||
TopAbs.cxx
|
||||
TopAbs.hxx
|
||||
TopAbs_Orientation.hxx
|
||||
TopAbs_ShapeEnum.hxx
|
||||
TopAbs_State.hxx
|
@@ -1,191 +0,0 @@
|
||||
-- Created on: 1992-01-24
|
||||
-- Created by: Remi LEQUETTE
|
||||
-- Copyright (c) 1992-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.
|
||||
|
||||
package TopAbs
|
||||
---Purpose: This package gives resources for Topology oriented
|
||||
-- applications such as : Topological Data Structure,
|
||||
-- Topological Algorithms.
|
||||
--
|
||||
-- It contains :
|
||||
--
|
||||
-- * The ShapeEnum enumeration to describe the
|
||||
-- differents topological shapes.
|
||||
--
|
||||
-- * The Orientation enumeration to describe the
|
||||
-- orientation of a topological shape.
|
||||
--
|
||||
-- * The State enumeration to describes the
|
||||
-- position of a point relative to a Shape.
|
||||
--
|
||||
-- * Methods to manage the enumerations.
|
||||
|
||||
---Level : Public.
|
||||
-- All methods of all classes will be public.
|
||||
|
||||
is
|
||||
|
||||
enumeration ShapeEnum is
|
||||
---Purpose: Identifies various topological shapes. This
|
||||
-- enumeration allows you to use dynamic typing of shapes.
|
||||
-- The values are listed in order of complexity, from the
|
||||
-- most complex to the most simple i.e.
|
||||
-- COMPOUND > COMPSOLID > SOLID > .... > VERTEX > SHAPE.
|
||||
-- Any shape can contain simpler shapes in its definition.
|
||||
-- Abstract topological data structure describes a basic
|
||||
-- entity, the shape (present in this enumeration as the
|
||||
-- SHAPE value), which can be divided into the following
|
||||
-- component topologies:
|
||||
-- - COMPOUND: A group of any of the shapes below.
|
||||
-- - COMPSOLID: A set of solids connected by their
|
||||
-- faces. This expands the notions of WIRE and SHELL to solids.
|
||||
-- - SOLID: A part of 3D space bounded by shells.
|
||||
-- - SHELL: A set of faces connected by some of the
|
||||
-- edges of their wire boundaries. A shell can be open or closed.
|
||||
-- - FACE: Part of a plane (in 2D geometry) or a surface
|
||||
-- (in 3D geometry) bounded by a closed wire. Its
|
||||
-- geometry is constrained (trimmed) by contours.
|
||||
-- - WIRE: A sequence of edges connected by their
|
||||
-- vertices. It can be open or closed depending on
|
||||
-- whether the edges are linked or not.
|
||||
-- - EDGE: A single dimensional shape corresponding
|
||||
-- to a curve, and bound by a vertex at each extremity.
|
||||
-- - VERTEX: A zero-dimensional shape corresponding to a point in geometry.
|
||||
COMPOUND,
|
||||
COMPSOLID,
|
||||
SOLID,
|
||||
SHELL,
|
||||
FACE,
|
||||
WIRE,
|
||||
EDGE,
|
||||
VERTEX,
|
||||
SHAPE
|
||||
|
||||
end ShapeEnum;
|
||||
|
||||
enumeration Orientation is
|
||||
---Purpose: Identifies the orientation of a topological shape.
|
||||
-- Orientation can represent a relation between two
|
||||
-- entities, or it can apply to a shape in its own right.
|
||||
-- When used to describe a relation between two
|
||||
-- shapes, orientation allows you to use the underlying
|
||||
-- entity in either direction. For example on a curve
|
||||
-- which is oriented FORWARD (say from left to right)
|
||||
-- you can have both a FORWARD and a REVERSED
|
||||
-- edge. The FORWARD edge will be oriented from
|
||||
-- left to right, and the REVERSED edge from right to
|
||||
-- left. In this way, you share the underlying entity. In
|
||||
-- other words, two faces of a cube can share an
|
||||
-- edge, and can also be used to build compound shapes.
|
||||
-- For each case in which an element is used as the
|
||||
-- boundary of a geometric domain of a higher
|
||||
-- dimension, this element defines two local regions of
|
||||
-- which one is arbitrarily considered as the default
|
||||
-- region. A change in orientation implies a switch of
|
||||
-- default region. This allows you to apply changes of
|
||||
-- orientation to the shape as a whole.
|
||||
FORWARD,
|
||||
REVERSED,
|
||||
INTERNAL,
|
||||
EXTERNAL
|
||||
|
||||
end Orientation;
|
||||
|
||||
enumeration State is
|
||||
---Purpose: Identifies the position of a vertex or a set of
|
||||
-- vertices relative to a region of a shape.
|
||||
-- The figure shown above illustrates the states of
|
||||
-- vertices found in various parts of the edge relative
|
||||
-- to the face which it intersects.
|
||||
IN,
|
||||
OUT,
|
||||
ON,
|
||||
UNKNOWN
|
||||
|
||||
end State;
|
||||
|
||||
|
||||
Compose(Or1 : Orientation from TopAbs;
|
||||
Or2 : Orientation from TopAbs)
|
||||
returns Orientation from TopAbs;
|
||||
---Purpose: Compose the Orientation <Or1> and <Or2>. This
|
||||
-- composition is not symmetric (if you switch <Or1> and
|
||||
-- <Or2> the result is different). It assumes that <Or1>
|
||||
-- is the Orientation of a Shape S1 containing a Shape S2
|
||||
-- of Orientation Or2. The result is the cumulated
|
||||
-- orientation of S2 in S1. The composition law is :
|
||||
--
|
||||
-- \ Or2 FORWARD REVERSED INTERNAL EXTERNAL
|
||||
-- Or1 -------------------------------------
|
||||
-- FORWARD | FORWARD REVERSED INTERNAL EXTERNAL
|
||||
-- |
|
||||
-- REVERSED | REVERSED FORWARD INTERNAL EXTERNAL
|
||||
-- |
|
||||
-- INTERNAL | INTERNAL INTERNAL INTERNAL INTERNAL
|
||||
-- |
|
||||
-- EXTERNAL | EXTERNAL EXTERNAL EXTERNAL EXTERNAL
|
||||
-- Note: The top corner in the table is the most important
|
||||
-- for the purposes of Open CASCADE topology and shape sharing.
|
||||
|
||||
Reverse(Or : Orientation from TopAbs)
|
||||
returns Orientation from TopAbs;
|
||||
---Purpose: xchanges the interior/exterior status of the two
|
||||
-- sides. This is what happens when the sense of
|
||||
-- direction is reversed. The following rules apply:
|
||||
--
|
||||
-- FORWARD REVERSED
|
||||
-- REVERSED FORWARD
|
||||
-- INTERNAL INTERNAL
|
||||
-- EXTERNAL EXTERNAL
|
||||
--
|
||||
-- Reverse exchange the material sides.
|
||||
--
|
||||
|
||||
Complement(Or : Orientation from TopAbs)
|
||||
returns Orientation from TopAbs;
|
||||
---Purpose: Reverses the interior/exterior status of each side of
|
||||
-- the object. So, to take the complement of an object
|
||||
-- means to reverse the interior/exterior status of its
|
||||
-- boundary, i.e. inside becomes outside.
|
||||
-- The method returns the complementary orientation,
|
||||
-- following the rules in the table below:
|
||||
-- FORWARD REVERSED
|
||||
-- REVERSED FORWARD
|
||||
-- INTERNAL EXTERNAL
|
||||
-- EXTERNAL INTERNAL
|
||||
--
|
||||
-- Complement complements the material side. Inside
|
||||
-- becomes outside.
|
||||
--
|
||||
|
||||
Print(SE : ShapeEnum from TopAbs; S : in out OStream) returns OStream;
|
||||
---Purpose: Prints the name of Shape <SEq> as a String on the
|
||||
-- Stream <S> and returns <S>.
|
||||
--
|
||||
---C++: return &
|
||||
|
||||
Print(Or : Orientation from TopAbs; S : in out OStream) returns OStream;
|
||||
---Purpose: Prints the name of the Orientation <Or> as a String on
|
||||
-- the Stream <S> and returns <S>.
|
||||
--
|
||||
---C++: return &
|
||||
|
||||
Print(St : State from TopAbs; S : in out OStream) returns OStream;
|
||||
---Purpose: Prints the name of the State <St> as a String on
|
||||
-- the Stream <S> and returns <S>.
|
||||
--
|
||||
---C++: return &
|
||||
|
||||
end TopAbs;
|
@@ -16,14 +16,12 @@
|
||||
|
||||
// Modified by model, Thu Jun 25 10:40:27 1992
|
||||
|
||||
#include <TopAbs.ixx>
|
||||
|
||||
#include <TopAbs.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : TopAbs_Compose
|
||||
//purpose : Compose two orientations
|
||||
//=======================================================================
|
||||
|
||||
TopAbs_Orientation TopAbs::Compose(const TopAbs_Orientation O1,
|
||||
const TopAbs_Orientation O2)
|
||||
{
|
||||
|
120
src/TopAbs/TopAbs.hxx
Normal file
120
src/TopAbs/TopAbs.hxx
Normal file
@@ -0,0 +1,120 @@
|
||||
// Created on: 1992-01-24
|
||||
// Created by: Remi LEQUETTE
|
||||
// Copyright (c) 1992-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.
|
||||
|
||||
#ifndef _TopAbs_HeaderFile
|
||||
#define _TopAbs_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <TopAbs_Orientation.hxx>
|
||||
#include <Standard_OStream.hxx>
|
||||
#include <TopAbs_ShapeEnum.hxx>
|
||||
#include <TopAbs_State.hxx>
|
||||
|
||||
|
||||
|
||||
class TopAbs
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Compose the Orientation <Or1> and <Or2>. This
|
||||
//! composition is not symmetric (if you switch <Or1> and
|
||||
//! <Or2> the result is different). It assumes that <Or1>
|
||||
//! is the Orientation of a Shape S1 containing a Shape S2
|
||||
//! of Orientation Or2. The result is the cumulated
|
||||
//! orientation of S2 in S1. The composition law is :
|
||||
//!
|
||||
//! \ Or2 FORWARD REVERSED INTERNAL EXTERNAL
|
||||
//! Or1 -------------------------------------
|
||||
//! FORWARD | FORWARD REVERSED INTERNAL EXTERNAL
|
||||
//! |
|
||||
//! REVERSED | REVERSED FORWARD INTERNAL EXTERNAL
|
||||
//! |
|
||||
//! INTERNAL | INTERNAL INTERNAL INTERNAL INTERNAL
|
||||
//! |
|
||||
//! EXTERNAL | EXTERNAL EXTERNAL EXTERNAL EXTERNAL
|
||||
//! Note: The top corner in the table is the most important
|
||||
//! for the purposes of Open CASCADE topology and shape sharing.
|
||||
Standard_EXPORT static TopAbs_Orientation Compose (const TopAbs_Orientation Or1, const TopAbs_Orientation Or2);
|
||||
|
||||
//! xchanges the interior/exterior status of the two
|
||||
//! sides. This is what happens when the sense of
|
||||
//! direction is reversed. The following rules apply:
|
||||
//!
|
||||
//! FORWARD REVERSED
|
||||
//! REVERSED FORWARD
|
||||
//! INTERNAL INTERNAL
|
||||
//! EXTERNAL EXTERNAL
|
||||
//!
|
||||
//! Reverse exchange the material sides.
|
||||
Standard_EXPORT static TopAbs_Orientation Reverse (const TopAbs_Orientation Or);
|
||||
|
||||
//! Reverses the interior/exterior status of each side of
|
||||
//! the object. So, to take the complement of an object
|
||||
//! means to reverse the interior/exterior status of its
|
||||
//! boundary, i.e. inside becomes outside.
|
||||
//! The method returns the complementary orientation,
|
||||
//! following the rules in the table below:
|
||||
//! FORWARD REVERSED
|
||||
//! REVERSED FORWARD
|
||||
//! INTERNAL EXTERNAL
|
||||
//! EXTERNAL INTERNAL
|
||||
//!
|
||||
//! Complement complements the material side. Inside
|
||||
//! becomes outside.
|
||||
Standard_EXPORT static TopAbs_Orientation Complement (const TopAbs_Orientation Or);
|
||||
|
||||
//! Prints the name of Shape <SEq> as a String on the
|
||||
//! Stream <S> and returns <S>.
|
||||
Standard_EXPORT static Standard_OStream& Print (const TopAbs_ShapeEnum SE, Standard_OStream& S);
|
||||
|
||||
//! Prints the name of the Orientation <Or> as a String on
|
||||
//! the Stream <S> and returns <S>.
|
||||
Standard_EXPORT static Standard_OStream& Print (const TopAbs_Orientation Or, Standard_OStream& S);
|
||||
|
||||
//! Prints the name of the State <St> as a String on
|
||||
//! the Stream <S> and returns <S>.
|
||||
Standard_EXPORT static Standard_OStream& Print (const TopAbs_State St, Standard_OStream& S);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _TopAbs_HeaderFile
|
48
src/TopAbs/TopAbs_Orientation.hxx
Normal file
48
src/TopAbs/TopAbs_Orientation.hxx
Normal file
@@ -0,0 +1,48 @@
|
||||
// Created on: 1992-01-24
|
||||
// Created by: Remi LEQUETTE
|
||||
// Copyright (c) 1992-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.
|
||||
|
||||
#ifndef _TopAbs_Orientation_HeaderFile
|
||||
#define _TopAbs_Orientation_HeaderFile
|
||||
|
||||
//! Identifies the orientation of a topological shape.
|
||||
//! Orientation can represent a relation between two
|
||||
//! entities, or it can apply to a shape in its own right.
|
||||
//! When used to describe a relation between two
|
||||
//! shapes, orientation allows you to use the underlying
|
||||
//! entity in either direction. For example on a curve
|
||||
//! which is oriented FORWARD (say from left to right)
|
||||
//! you can have both a FORWARD and a REVERSED
|
||||
//! edge. The FORWARD edge will be oriented from
|
||||
//! left to right, and the REVERSED edge from right to
|
||||
//! left. In this way, you share the underlying entity. In
|
||||
//! other words, two faces of a cube can share an
|
||||
//! edge, and can also be used to build compound shapes.
|
||||
//! For each case in which an element is used as the
|
||||
//! boundary of a geometric domain of a higher
|
||||
//! dimension, this element defines two local regions of
|
||||
//! which one is arbitrarily considered as the default
|
||||
//! region. A change in orientation implies a switch of
|
||||
//! default region. This allows you to apply changes of
|
||||
//! orientation to the shape as a whole.
|
||||
enum TopAbs_Orientation
|
||||
{
|
||||
TopAbs_FORWARD,
|
||||
TopAbs_REVERSED,
|
||||
TopAbs_INTERNAL,
|
||||
TopAbs_EXTERNAL
|
||||
};
|
||||
|
||||
#endif // _TopAbs_Orientation_HeaderFile
|
58
src/TopAbs/TopAbs_ShapeEnum.hxx
Normal file
58
src/TopAbs/TopAbs_ShapeEnum.hxx
Normal file
@@ -0,0 +1,58 @@
|
||||
// Created on: 1992-01-24
|
||||
// Created by: Remi LEQUETTE
|
||||
// Copyright (c) 1992-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.
|
||||
|
||||
#ifndef _TopAbs_ShapeEnum_HeaderFile
|
||||
#define _TopAbs_ShapeEnum_HeaderFile
|
||||
|
||||
//! Identifies various topological shapes. This
|
||||
//! enumeration allows you to use dynamic typing of shapes.
|
||||
//! The values are listed in order of complexity, from the
|
||||
//! most complex to the most simple i.e.
|
||||
//! COMPOUND > COMPSOLID > SOLID > .... > VERTEX > SHAPE.
|
||||
//! Any shape can contain simpler shapes in its definition.
|
||||
//! Abstract topological data structure describes a basic
|
||||
//! entity, the shape (present in this enumeration as the
|
||||
//! SHAPE value), which can be divided into the following
|
||||
//! component topologies:
|
||||
//! - COMPOUND: A group of any of the shapes below.
|
||||
//! - COMPSOLID: A set of solids connected by their
|
||||
//! faces. This expands the notions of WIRE and SHELL to solids.
|
||||
//! - SOLID: A part of 3D space bounded by shells.
|
||||
//! - SHELL: A set of faces connected by some of the
|
||||
//! edges of their wire boundaries. A shell can be open or closed.
|
||||
//! - FACE: Part of a plane (in 2D geometry) or a surface
|
||||
//! (in 3D geometry) bounded by a closed wire. Its
|
||||
//! geometry is constrained (trimmed) by contours.
|
||||
//! - WIRE: A sequence of edges connected by their
|
||||
//! vertices. It can be open or closed depending on
|
||||
//! whether the edges are linked or not.
|
||||
//! - EDGE: A single dimensional shape corresponding
|
||||
//! to a curve, and bound by a vertex at each extremity.
|
||||
//! - VERTEX: A zero-dimensional shape corresponding to a point in geometry.
|
||||
enum TopAbs_ShapeEnum
|
||||
{
|
||||
TopAbs_COMPOUND,
|
||||
TopAbs_COMPSOLID,
|
||||
TopAbs_SOLID,
|
||||
TopAbs_SHELL,
|
||||
TopAbs_FACE,
|
||||
TopAbs_WIRE,
|
||||
TopAbs_EDGE,
|
||||
TopAbs_VERTEX,
|
||||
TopAbs_SHAPE
|
||||
};
|
||||
|
||||
#endif // _TopAbs_ShapeEnum_HeaderFile
|
33
src/TopAbs/TopAbs_State.hxx
Normal file
33
src/TopAbs/TopAbs_State.hxx
Normal file
@@ -0,0 +1,33 @@
|
||||
// Created on: 1992-01-24
|
||||
// Created by: Remi LEQUETTE
|
||||
// Copyright (c) 1992-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.
|
||||
|
||||
#ifndef _TopAbs_State_HeaderFile
|
||||
#define _TopAbs_State_HeaderFile
|
||||
|
||||
//! Identifies the position of a vertex or a set of
|
||||
//! vertices relative to a region of a shape.
|
||||
//! The figure shown above illustrates the states of
|
||||
//! vertices found in various parts of the edge relative
|
||||
//! to the face which it intersects.
|
||||
enum TopAbs_State
|
||||
{
|
||||
TopAbs_IN,
|
||||
TopAbs_OUT,
|
||||
TopAbs_ON,
|
||||
TopAbs_UNKNOWN
|
||||
};
|
||||
|
||||
#endif // _TopAbs_State_HeaderFile
|
Reference in New Issue
Block a user