Skip to content
Snippets Groups Projects
  1. Dec 30, 2004
    • Christophe Geuzaine's avatar
      · 9d07fbc5
      Christophe Geuzaine authored
      Don't optimize Gmsh.tab.o: on many architectures, g++ -O2 generates
      assembly code too large to be addressed correctly. This will hopefully
      fix the build problems reported on ppc.
      9d07fbc5
    • Christophe Geuzaine's avatar
      · 8377e742
      Christophe Geuzaine authored
      don't need UpdateViewsInGUI in parser anymore
      8377e742
    • Christophe Geuzaine's avatar
      · dfe36c8a
      Christophe Geuzaine authored
      better test for invalid For/EndFor loops
      dfe36c8a
    • Christophe Geuzaine's avatar
      *** empty log message *** · 64a959e5
      Christophe Geuzaine authored
      64a959e5
    • Christophe Geuzaine's avatar
      · 5aeb5576
      Christophe Geuzaine authored
      Don't update the views in the GUI directly after each view is created.
      Instead, wait until the whole file is read. This speeds up the creation
      of the interface dramatically when we have a large number of views in
      a single file. (In my code I routinely merge around 1000 views
      in a single file to do animations; with this patch, the GUI creation
      time goes from 30 seconds to less than 1 second.)
      5aeb5576
  2. Dec 27, 2004
    • Christophe Geuzaine's avatar
      · c556d30f
      Christophe Geuzaine authored
      more robust "Delete Empty Views"
      c556d30f
    • Christophe Geuzaine's avatar
      · b67069ff
      Christophe Geuzaine authored
      my last commit also fixed several problems in For/EndFor loops:
      
      - the body of the loop was executed at least once, even if the test was
        always false (e.g. For (1:-1:1) )
      - the body could be executed one extra time when using optional
        step values
      - the for loops didn't work with negative step values
      b67069ff
    • Christophe Geuzaine's avatar
      · e13b85ce
      Christophe Geuzaine authored
      - new parser function GetValue("text", default_value) to query a value
        interactively in a script
      
      - added a nice example using this (to compute slices automatically):
        demos/multislice.script
      e13b85ce
  3. Dec 26, 2004
    • Christophe Geuzaine's avatar
      · ee09900d
      Christophe Geuzaine authored
      - new "Delete Empty Views" command
      - new View.MinX, View.MinY, View.MinZ, View.MaxX, View.MaxY, View.MaxZ options
      - added example on how to do simple volume visualization
      ee09900d
  4. Dec 17, 2004
    • Christophe Geuzaine's avatar
      · 5dfa7230
      Christophe Geuzaine authored
      - fix cast in a couple of error msg
      - more fixes in elliptic algorithm (surf->TrsfVertices and surf->Vertices
        were incomplete)
      5dfa7230
  5. Dec 13, 2004
    • Christophe Geuzaine's avatar
      · 45db7277
      Christophe Geuzaine authored
      one can now specify a TIME list of values in parsed views to give the
      values of the time (or whatever) steps (like in ascii/binary views)
      45db7277
  6. Dec 06, 2004
    • Christophe Geuzaine's avatar
      · c95cb1d4
      Christophe Geuzaine authored
      - moved the AdaptiveView stuff in its own header file
      
      - fixed small bug in IsoSimplex (when Raise != 0)
      
      - fixed small memory leak in Plugin/Extract (when one or more
        expressions are invalid)
      c95cb1d4
  7. Nov 25, 2004
    • Christophe Geuzaine's avatar
      · 4b04a183
      Christophe Geuzaine authored
      - Added a bunch of colormaps from:
      
        Color Theory and Modeling for
        Computer Graphics, Visualization,
        and Multimedia Applications
      
        Haim Levkowitz
        University of Massachusetts Lowell
        Lowell, Massachusetts, USA
      
      - Increased max size of colormap to 1024
      
      - Small cleanup in parser+plugin
      4b04a183
    • Jean-François Remacle's avatar
      *** empty log message *** · 5c635fa8
      Jean-François Remacle authored
      5c635fa8
    • Christophe Geuzaine's avatar
      · 09149e34
      Christophe Geuzaine authored
      This patch fixes an old design flaw in the post-processing module,
      namely that we used a list of Post_View objects instead of a list of
      pointers to Post_View objects in CTX.post.list.
      
      This had many annoying consequences, in particular the fact that we
      needed to be extra careful every time the list was reallocated (as
      pointers to the list elements would become invalid).
      
      I tried very hard to change the code everywhere it should be changed,
      but I might have missed something. Please let me know if you see
      anything suspicious (like a crash when you duplicate/remove/combine/...
      post-processing views).
      09149e34
  8. Nov 19, 2004
    • Christophe Geuzaine's avatar
      · 1b1c132f
      Christophe Geuzaine authored
      fixed error checking code to work also with adaptive views.
      1b1c132f
  9. Nov 09, 2004
  10. Nov 01, 2004
  11. Oct 28, 2004
    • Christophe Geuzaine's avatar
      · 6f149945
      Christophe Geuzaine authored
      proof of concept for unproject (e.g. to add points with the mouse)
      6f149945
    • Christophe Geuzaine's avatar
      · 59a84726
      Christophe Geuzaine authored
      - make the rotation matrix a matrix of doubles (instead of floats)
      
      - store the modelview and the projection matrices in CTX
      
      - new unproject() routine to transform window coordinates to model
        coordinates
      
      - cleaned up all the static variables in the Opengl_Window class
      
      - small fix to reduce normal clamping when zooming
      59a84726
  12. Oct 27, 2004
    • Christophe Geuzaine's avatar
      · bc987486
      Christophe Geuzaine authored
      if we have no geometry and no mesh, use the max of all view bounding boxes
      (instead of the bounding box of the last view only)
      bc987486
  13. Oct 20, 2004
    • Christophe Geuzaine's avatar
      · e0046e2c
      Christophe Geuzaine authored
      small fixes for last commit:
      
      - only delete view.adaptive if we really delete the view (we might want to
        use the adaptive data in a duplicate view)
      
      - add missing opt_view_global_zoom in update_view()
      
      - don't even try to open StructuralSolver's data files if GMSHPLUGINSHOME
        is not defined
      e0046e2c
    • Jean-François Remacle's avatar
      · b0f29eb2
      Jean-François Remacle authored
      New high order interpolation.
      
      JFR
      b0f29eb2
  14. Oct 17, 2004
    • Christophe Geuzaine's avatar
      · 1b00135d
      Christophe Geuzaine authored
      Trying to fix Patrick's problems when launching getdp on Windows...
      
      When gmsh is started from the command line on Windows, cygwin does
      not (for some obscure reason) prepend '/cygdrive/x/' to the path. Since
      we check for '/cygdrive/' in SystemCall() in order to sanitize the
      path before passing it to CreateProcess(), the system call fails.
      
      I think the right way to deal with this is to actually remove the
      path change in SystemCall() (since we only change the leading part),
      and use the official cygwin API to change the path of every piece
      that will eventually end up in the argument of CreateProcess().
      And that's what "FixWindowsPath()" now does...
      1b00135d
  15. Oct 16, 2004
  16. Oct 15, 2004
    • Christophe Geuzaine's avatar
      · 2e81bcef
      Christophe Geuzaine authored
      added ability to save views in "parsed" format
      2e81bcef
  17. Sep 25, 2004
    • Christophe Geuzaine's avatar
      · 70de42ca
      Christophe Geuzaine authored
      subclass the original file chooser and move it into the GUI class, so
      that we can set its position (the FLTK folks don't want to patch the
      standard file chooser, so this is the only solution...)
      70de42ca
  18. Sep 18, 2004
    • Christophe Geuzaine's avatar
      · d2e37ab4
      Christophe Geuzaine authored
      generalized the "spatial" Combine so that we can also combine by view name
      d2e37ab4
    • Christophe Geuzaine's avatar
      · 3b20e547
      Christophe Geuzaine authored
      cleaned up View->Combine by defining a new option (to determine if
      we should remove the original views after a "Combine" or not)
      3b20e547
  19. Sep 16, 2004
    • Christophe Geuzaine's avatar
      · 17d7ba05
      Christophe Geuzaine authored
      speedup view removal (only call UpdateViewsInGUI once per group of
      deletions)
      17d7ba05
  20. Sep 13, 2004
    • Christophe Geuzaine's avatar
      · 71b15288
      Christophe Geuzaine authored
      Changed the order in which we compute the bounding box of a scene: look
      for mesh vertices first, then look for geometry points. I think this is better,
      since more and more people use the code just to visualize meshes (without
      geometries); as soon as there was one physical point in the mesh, the resulting
      bb could seem strange (as the physical points create geometrical points).
      71b15288
  21. Aug 28, 2004
    • Christophe Geuzaine's avatar
      · b9ecc41b
      Christophe Geuzaine authored
      - set glBlendEquation explicitly
      - make parser
      b9ecc41b
  22. Aug 27, 2004
  23. Aug 09, 2004
  24. Aug 06, 2004
  25. Jul 16, 2004
  26. Jul 02, 2004
    • Christophe Geuzaine's avatar
      · 320ae905
      Christophe Geuzaine authored
      force a buffer flush when we abort the parser due to too many errors
      320ae905
    • Christophe Geuzaine's avatar
      · 7379efb3
      Christophe Geuzaine authored
      - All extrusion commands now return a list of 2 numbers (instead of 1):
        the first, as before, is the number of the "top" of the extruded region
        (i.e., a point for extrude point, a line for extrude line, ...), the
        second is the number of the "body" of the extruded region (i.e., a
        line for extrude point, a surface for extrude line, ...).
      
      - "Extrude Surface" now always creates a new volume (automatically),
        EVEN WHEN THERE IS NO LAYERS SPECIFICATION. This makes it consistent
        with "Extrude Point" and "Extrude Line", which always create new
        curves and surfaces, respectively.
      
        Important Note: you will have to modify your old .geo files to avoid
        duplicate volume definitions if you use "Extrude Surface" without
        extruding the mesh (i.e., without the "Layers" command). These
        duplicate volumes would be harmless, but they would srew up your
        physical volume definitions later on...
      
        * Solution 1: use the new volumes (recommended). To do this, just
        remove your old extra volume definitions and let Gmsh create the
        extruded volumes for you. (To retrieve the volume number created by
        Gmsh, use "aa[] = Extrude Surface {...};;": the volume number is
        "aa[1]".)
      
        * Solution 2: keep the old volumes.
      
        a) clean way: retrieve the new volume number (aa[] = Extrude Surface
        {...};;) and delete the new volume with "Delete { Volume aa[1]; }"
      
        b) dirty (but handy) way: since, in order to create the new volumes
        with the less impact possible, Gmsh uses "low" numbers (actually,
        forcing "Geometry.OldNewreg=0") for the new volumes, just remove all
        "low number volumes". For example, if you have 4 "Extrude Surface" in
        your file, you can then just do "Delete{ Volume {1:4}; }"
      
      Voila :-)
      7379efb3
  27. Jul 01, 2004
    • Christophe Geuzaine's avatar
      · 416af37c
      Christophe Geuzaine authored
      bulletproof FindCurve/Surface + uniformize error messages
      416af37c
Loading