GithubHelp home page GithubHelp logo

Comments (4)

MiguelVCarvalho avatar MiguelVCarvalho commented on August 15, 2024

To use the subdivision algorithm All Quads, the checkbox Recombine all triangular meshes has to be activated also. Otherwise, it will only break all triangles into 4 quads.

from neper.

rquey avatar rquey commented on August 15, 2024

How would it translate in terms of entries in the .geo file? For tri/tet meshing, Neper uses this:

/* Options for the meshing: */
[...]
Mesh.Algorithm      = 6;
Mesh.Algorithm3D    = 4;
[...]
Mesh.SaveAll = 1;
Mesh.Optimize       = 1;

from neper.

MiguelVCarvalho avatar MiguelVCarvalho commented on August 15, 2024

Quad Dominant:

Mesh.RecombinationAlgorithm = 3; (blossom full-quad)
Mesh.RecombineAll = 1;

All Quads:
Mesh.RecombinationAlgorithm = 3; (blossom full-quad)
Mesh.RecombineAll = 1;
Mesh.SubdivisionAlgorithm = 1; (All quads)

Something like this might work.

from neper.

rquey avatar rquey commented on August 15, 2024

@MiguelVCarvalho - As of version 3.5.3-29, a mesh can be written under format msh version 4, using -format msh4. The mesh file can then be processed externally (by Gmsh) to get a full-quad mesh.

Here is an example:

neper -T -n 2 -dim 2
neper -M n2-id1.tess -format msh4
gmsh -2 n2-quad.geo

This is only a start - it will be integrated to Neper more thoroughly.

n2-quad.geo:

Merge "n2-id1.msh4";
Mesh.RecombinationAlgorithm = 1;
RecombineMesh;
Mesh.SecondOrderLinear = 1;
Mesh.SubdivisionAlgorithm = 1;
RefineMesh;

from neper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.