~ubuntu-branches/ubuntu/karmic/gmsh/karmic

« back to all changes in this revision

Viewing changes to Geo/GModelIO_OCC.h

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme, Daniel Leidert
  • Date: 2008-05-18 12:46:05 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080518124605-716xqbqeo07o497k
Tags: 2.2.0-2
[Christophe Prud'homme]
* Bug fix: "gmsh ships no .desktop", thanks to Vassilis Pandis (Closes:
  #375770). Applied the Ubuntu patch.

[Daniel Leidert]
* debian/control (Vcs-Svn): Fixed.
  (Build-Depends): Use texlive instead of tetex-bin.
* debian/gmsh.doc-base (Section): Fixed accordingly to doc-base (>= 0.8.10).
* debian/rules: Removed some variable declarations, that lead to double
  configuration and seem to be useless.
  (build/gmsh): Try to avoid multiple runs by using a stamp.
  (orig-tarball): Renamed to get-orig-source and changed to use uscan.
* debian/watch: Added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef _GMODELIO_OCC_H_
2
2
#define _GMODELIO_OCC_H_
3
3
 
4
 
// $Id: GModelIO_OCC.h,v 1.2 2007-04-23 08:04:16 geuzaine Exp $
 
4
// $Id: GModelIO_OCC.h,v 1.5 2008-03-20 11:44:05 geuzaine Exp $
5
5
//
6
 
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
 
6
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
7
7
//
8
8
// This program is free software; you can redistribute it and/or modify
9
9
// it under the terms of the GNU General Public License as published by
32
32
  TopoDS_Shape shape;
33
33
  TopTools_IndexedMapOfShape fmap, emap, vmap, somap, shmap, wmap;
34
34
 public:
 
35
  
 
36
  enum BooleanOperator { Add , Cut }; 
 
37
 
35
38
  OCC_Internals()
36
39
  {
37
40
    somap.Clear();
42
45
    vmap.Clear();
43
46
  }
44
47
  void HealGeometry(double tolerance, bool fixsmalledges, 
45
 
                    bool fixspotstripfaces, bool sewfaces, 
46
 
                    bool makesolids=false);
 
48
                    bool fixspotstripfaces, bool sewfaces, 
 
49
                    bool makesolids=false);
47
50
  void loadSTEP(const char *);
48
51
  void loadIGES(const char *);
49
52
  void loadBREP(const char *);  
50
53
  void buildGModel(GModel *gm);
51
54
  void buildLists();
 
55
  void removeAllDuplicates (const double &tolerance);
 
56
 
 
57
  void Sphere  ( const SPoint3 & center, const double & radius, const BooleanOperator & op );
 
58
  void Cylinder( const SPoint3 & bottom_center, const SVector3 & dir, const BooleanOperator & op );
 
59
  void applyBooleanOperator ( TopoDS_Shape tool, const BooleanOperator & op);
52
60
};
53
61
 
54
62
#endif