Coder Social home page Coder Social logo

Comments (13)

krober10nd avatar krober10nd commented on August 23, 2024 1

Neat that's logical. Yea, corners could be optional as naturally some some geometries don't have them.

I'll get to work sometime today.

from seismicmesh.

nschloe avatar nschloe commented on August 23, 2024 1

Extrusion, yes, also a good idea. Gmsh has extrude, revolve, twist. For all of these, it's possible to create a 3D model from a 2D one programmatically. That's for the future perhaps.

from seismicmesh.

krober10nd avatar krober10nd commented on August 23, 2024 1

A tuple as opposed to a list? Why so strict? (Genuine question, perhaps it does make sense.)

Because tuple is immutable and the idea is that the bbox shouldn't mutate.

from seismicmesh.

krober10nd avatar krober10nd commented on August 23, 2024

Okay made some progress over on #106 ....will add the intersection class in a bit. One thing that I'd like to handle is if you want to compute the intersection between say a disk (dim=2) and a cube (dim=3), it could work it out and produce a cylinder.

Maybe the latter isn't a great idea, not sure.

from seismicmesh.

nschloe avatar nschloe commented on August 23, 2024

intersection between say a disk (dim=2) and a cube (dim=3)

Doesn't seem to make sense when first reading it.

I'd say better get union, intersection, and difference down. Perhaps a few primitive shapes like cube, ball, wedge, I don't know. With this, one should be able to do quite a lot already.

from seismicmesh.

krober10nd avatar krober10nd commented on August 23, 2024

Yea, I agree. I think that's more of what you would call an extrusion.

from seismicmesh.

jorgensd avatar jorgensd commented on August 23, 2024

Another minor improvement would be to have an additional keyword argument to plot_sizing_function, such that one can visualize it when using containers etc.

def plot_sizing_function(cell_size, stride=1, comm=None, filename=None):
    # ...
    if filename is None:
        plt.show()
    else:
        plt.savefig(filename)

from seismicmesh.

krober10nd avatar krober10nd commented on August 23, 2024

ah yea, that's a good suggestion.

from seismicmesh.

nschloe avatar nschloe commented on August 23, 2024

The following still fails

import SeismicMesh

points, cells = SeismicMesh.generate_mesh(
    h0=0.1,
    domain=SeismicMesh.geometry.Rectangle([-1.0, +1.0, -1.0, +1.0]),
    edge_length=0.1,
)
ValueError: `bbox` must be a tuple

The idea here would be that you don't need to specify a bbox explicitly; it should be taken from domain.

from seismicmesh.

krober10nd avatar krober10nd commented on August 23, 2024

The idea here would be that you don't need to specify a bbox explicitly; it should be taken from domain.

It is taken from domain.

fd, bbox0, _ = _unpack_domain(domain, sliver_opts)

It's failing because bbox isn't a tuple

from seismicmesh.

nschloe avatar nschloe commented on August 23, 2024

A tuple as opposed to a list? Why so strict? (Genuine question, perhaps it does make sense.)

from seismicmesh.

krober10nd avatar krober10nd commented on August 23, 2024

This should work

 import SeismicMesh
 
 points, cells = SeismicMesh.generate_mesh(
     domain=SeismicMesh.geometry.Rectangle((-1.0, +1.0, -1.0, +1.0)),
     edge_length=0.1,
 )

from seismicmesh.

nschloe avatar nschloe commented on August 23, 2024

Can perhaps also be closed.

from seismicmesh.

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.