Coder Social home page Coder Social logo

Comments (6)

jacobmerson avatar jacobmerson commented on September 16, 2024 1

@joshia5 I understand that there is a different set of functions when using topo_type or the dimension. What I'm saying is that is very surprising from the API perspective. As a user the only way that you would know this is by reading the code.

Do you have a lot of users using mixed meshes? It would probably make sense to break the mixed mesh functionality into a separate class since the current state is two orthogonal ways of working with the data mashed into a single class.

If you have only a few internal users for that functionality making some changes may be feasible and I can propose something.

Just bringing stuff up as I find it that catches me up. I'm open to discussion here.

from omega_h.

joshia5 avatar joshia5 commented on September 16, 2024

The storage/retrieval of tags for mixed meshes works based on topology type. It is not based on dimension. Following are the enum associated with the topo types:

enum class Topo_type : int { vertex, edge, triangle, quadrilateral, tetrahedron, hexahedron, wedge, pyramid };

from omega_h.

joshia5 avatar joshia5 commented on September 16, 2024

There are different query/storage functions for mixed mesh which accept topo_type as argument. For example if a tag is requested on entities of type "quadrilateral" it will return the tags that were set on quads only

from omega_h.

joshia5 avatar joshia5 commented on September 16, 2024

sounds good.. afaik i don't think I have active users right now for the mixed mesh. I am open to discussions on improving the api design

from omega_h.

joshia5 avatar joshia5 commented on September 16, 2024

I think some level of support at the back-end exists for such an API to deal with tags for mixed mesh and transforming tag data between Topo_type and dimension. It was developed to support file i/o for vtk files. The missing link would be the APIs to get/set tags that are exposed to the user.

from omega_h.

cwsmith avatar cwsmith commented on September 16, 2024

resolved with #82

from omega_h.

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.