Git Product home page Git Product logo

Comments (3)

marcocisternino avatar marcocisternino commented on July 21, 2024 1

Hi Alice,
what do you mean with "extremal points" of an interface? Do you mean its vertices? If yes, here an example is:
Let's extract an interface from a voloctree object (here patch is a pointer to a voloctree object) using its id (be id a consistent long) and ask for its vertices:
ConstProxyVector interfaceVertexIds = patch->getInterface(id).getVertexIds();
loop over the obtained vertices and ask for their coordinates storing them in an array<double,3>
const int nCellVertices = interfaceVertexIds.size();
for(int k = 0; k < nCellVertices; ++k){
std::array<double,3> v_coord = patch->getVertexCoords(interfaceVertexIds[k]);
}

If you meant something else, please explain me exactly what you mean with "extremal points" of an interface.
Marco

from bitpit.

marcocisternino avatar marcocisternino commented on July 21, 2024

Sorry, obviously nCellVertices is not an happy choice, but it is not wrong. I should use something less cryptic like nInterfaceVertices. Anyway...

from bitpit.

araeli avatar araeli commented on July 21, 2024

Hello Marco,

sorry I am late for answering. Yes it was that I meant; thank you so much for your help, I was pretty sure there was a better manner to study the vertices of an interface. I am still testing and it is very helpful for me now.

Alice

from bitpit.

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.