Questions tagged [mesh]

Questions on the use and creation of meshes including the use of MeshRegion, ElementMesh, and TetGenLink.

Filter by
Sorted by
Tagged with
2
votes
1answer
70 views

How to remove the parallelepiped that encloses the writing or make it invisible?

I have this code that I found somewhere and I love what it does, I've been checking the "line" command to remove the line or make it invisible but I can't get it, and the other part of the ...
1
vote
2answers
116 views

Create a “loft” surface from two BSplineCurves?

Is there a way to take two arbitrary BSplineCurves and create a loft surface? I would like to then create a mesh to send to NDSolveValue.
2
votes
1answer
124 views

Create graded mesh

I want to create graded mesh inside a cube, with finer mesh in the left half and a coarser mesh in the right half. My plan was to partition the cube with a 2D plane and then generate boundary mesh ...
3
votes
1answer
69 views

Export Discretized ImplicitRegion as step using OpenCascade

Following the reply by @user21 to this post on exporting a region to a step file, I tried to do the same for a Discretized ImplicitRegion, but OpenCascadeShape didn't appear to work. Is there a switch ...
7
votes
1answer
203 views

Smoothing the Region?

There is a 2D Pi I successed transformed it to 3D. ...
1
vote
1answer
88 views

How do I properly define and work with region unions?

Suppose I have two regions defined by two hexahedrons (slightly adapted from this question): ...
1
vote
1answer
43 views

How do I get `ArrayMesh` to reverse the order of data in a 3D array?

The following array has non-zero entries in the cells where all three indices are equal: foo = SparseArray[{i_, i_, i_} -> 1, {4, 4, 4}] When I try to render ...
4
votes
2answers
115 views

OpenCascadeLink Viewing and Assigning Element Markers

I recently upgraded to MM 12.1 so I could use OpenCascadeLink for 3D meshing following the excellent answer to a question regarding 3D meshing: 3D Meshing Internal regions Assigning boundary element ...
10
votes
1answer
334 views

How to mesh a French biscuit (modulated ellipsoid)

I would like to create a boundary mesh of the following ellipsoid, whose thickness is modulated along its long axis: The surface parametrization I used for it is: ...
6
votes
1answer
180 views

3D FEM Meshing Internal Regions

I am trying to set up a 3D element mesh with intersecting regions having different mesh densities. I am having difficulty setting up the defining boundary meshes from which I will then apply ...
3
votes
1answer
128 views

Turn a region and points inside that region into a mesh

I have a region defined by a polygon and a few points that are inside that region. I'd like to create a mesh where its boundary is the boundary of the region and the vertices interior to the mesh are ...
0
votes
0answers
37 views

Dump Curvature Information for 3d Models

Is anyone aware of any utility to generate and dump Principal, Gaussian and Mean Curvatures for a 3D Model or a set of points? I have reserched following tools - meshlab cloudcompare They are able to ...
5
votes
1answer
198 views

Mass Transport FEM Using Quad Mesh

This question is a follow-up to my previous question and an attempt to implement @Tim Laska's excellent approach of setting up an anisotropic quad mesh. I'm solving a similar problem to @Tim Laska's ...
1
vote
0answers
93 views

Why is there no heat being transfered in my program?

I have been working on this code and am new to this coding language. I have been trying to model the transfer of heat through a hot plastic being cooled in a water bath. For some reason I have not ...
5
votes
2answers
269 views

How to fill in interior in a mesh region

Say I have a mesh region which encloses a region. How do I get a mesh region where this region is filled? Take for example the meshregion below: ...
1
vote
0answers
49 views

obtain the analytics region from mesh or vtk file

Is it possible to obtain the region inequalities from a mesh file (vtk-file). On gmsh I build a Sphere, and with Mathematica I would like to obtain the analytics region function, that's is possible?. ...
2
votes
1answer
97 views

ToElementMesh Error/General meshing strategies

I am trying to create a mesh using ToBoundaryMesh as opposed to DiscretizeRegion. I was hoping this would be a better strategy ...
6
votes
1answer
199 views

Improving mesh and NDSolve solution convergence

I have developed the code below to solve two PDEs; first mu[x,y] is solved for, then the results of mu are used to solve for phi[x,y]. The code works and converges on a solution as is, however, I ...
5
votes
2answers
264 views

Mesh Generation help

I am having trouble generating a mesh of a rectangle inside another rectangle. I have been following the steps on this article: https://reference.wolfram.com/language/PDEModels/tutorial/HeatTransfer/...
5
votes
3answers
291 views

How to discretize a parametric polar surface ensuring the correct periodicity of the mesh

I am trying to discretize a polar surface using a combination of ParametricPlot3D and DiscretizeGraphics. Unfortunately, the ...
1
vote
0answers
51 views

Why does ConvexHullMesh give inconsistent output stuctures?

I know much of the stuff in ConvexHullMesh needs some TLC convexhullmesh-inconsistency But, can anyone see why this would produce inconsistent output: Case 1 (expected behavior): ...
5
votes
1answer
116 views

ConvexHullMesh inconsistency

I am seeing an inconsistency in ConvexHullMesh that I don't understand. Here is Rhull = ConvexHullMesh[pts8] where the $8$ ...
2
votes
2answers
83 views

How to discretize the boundary of two regions?

Problem How to discretize a surface constructed with multiple components? Unsuccessful attempts include combining the objects top and ...
4
votes
1answer
100 views

Strange behaviour in ToElementMesh

Why would that not work: ...
9
votes
1answer
355 views

Help to create a 2D mesh generator (FEM)

I'm working in a finite element mesh generator. I built this function which generates an 8 node mesh (polynomials of order 2) without any interior node: ...
1
vote
1answer
50 views

How can I specify the output mesh resolution for ListPlot3D?

I am using a grayscale image to generate a 3D topology, with the help of ListPlot3D. However, the output mesh resolution is far too high for my purposes. I need to ...
1
vote
1answer
47 views

Unable to affect mesh regions with DiscretizeGraphics

Problem On the sphere, it is easy to control the resolution of the mesh in DiscretizeGraphics using the MaxCellMeasure ...
4
votes
1answer
58 views

VoronoiMesh with boundary edges removed

I would like to create a Voronoi diagram without the boundary edges highlighted. This code gVD = VoronoiMesh[X, MeshCellStyle -> {{1, All} -> {Thick, Red}}] ...
4
votes
1answer
131 views

Drawing a “realistic” VoronoiMesh

Consider a set of points generated via Lloyd's relaxation algorithm ...
1
vote
0answers
42 views

Extract data from ConvexHullMesh [closed]

I have a ConvexHullMesh and want to extract the bounding points. I am familiar with using Cases to extract data from plots but ...
0
votes
0answers
50 views

Why BoundingRegion Fails in such cases

When I was playing this answer of tube, function TubePolygons used in my question. ...
0
votes
1answer
68 views

Mesh Refinement for interpolation of f[x,y] fails for all but the simplest f

I would like to interpolate a function, f[x,y,z], on a mesh of the unit cube, starting with a coarse tetrahedral mesh and refining tetrahedra as needed to reduce the interpolation error below a ...
2
votes
1answer
103 views

Finding lower boundary of a 3D object in list format

I have the following point list and would like to find the points located in the lower boundary of the 3D object (It is part of a body torso). https://pastebin.com/L12n0Gfr I am using the following ...
3
votes
0answers
64 views

Unfold/develop a RevolutionPlot3D mesh onto a 2D plane?

I'm making my own blimp out of emergency blankets (Mylar), and I want it to have a NACA0025 airfoil shape. I'm new to Mathematica, but I still managed to create the shape I wanted with ...
14
votes
3answers
230 views

Ordering Problem With VoronoiMesh

Imagine I want to model 2D cells moving in a tissue. Consider, as an example, Lloyd's relaxation algorithm. Using VoronoiMesh I'm able to mimic some cell movement. ...
4
votes
1answer
92 views

Capturing mesh information

Mesh information Using the helpful tips from Triangular mesh of random points on a sphere, it's easy to generate solids: ...
14
votes
2answers
493 views

How to make a structured mesh with a hole and extrude it

I am trying to use the FEMAddOns package to make a structured mesh with a hole and then extrude it. As a warm up example this worked nicely. ...
4
votes
1answer
155 views

MeshRefinementFunction analogue for ToElementMesh

MeshRefinementFunction according to the documentation is an option for DiscretizeRegion. Is there an analogue for ...
5
votes
1answer
75 views

How to create a 1D mesh from a curved line (with ToElementMesh)

I want to create an element mesh from an arc $x=Rcos(\varphi), y=Rsin(\varphi)$, with $R=100, \varphi \in [0,\pi/4]$ which looks like this: ...
7
votes
2answers
253 views

Computing volume of intersection of two regions

I am trying to compute the volume of intersection of the following two regions: ...
7
votes
1answer
210 views

Convert ConvexHull to Inequality

I have the following convex hull. P0={0,0,0}; P1={1,0,0}; P2={0,1,0}; P3={0,0,1}; ConvexHullMesh[{P0,P1,P2,P3}] Now I want the region algebraically as equality ...
0
votes
0answers
75 views

Surface area of a list of points

I would like to know how I can get the area of the following point list. I am using the following script to make a mesh region and then find the area. However, the area is much larger than the value ...
0
votes
1answer
65 views

RegionResize works improperly with different digital accuracy

The data is copied from the output cell of my original data. ...
2
votes
1answer
118 views

Plotting Cartesian mesh on Sphere with SphericalPlot3D

I really want to know how to plot the Cartesian grid lines on a 2D plane onto a sphere in the context of stereographic projection. I found this image showing what I want to plot. Can anyone help me to ...
9
votes
3answers
636 views

How to determine if a point is within a concave 3D polyhedron?

Generally, if you have a 3D polyhedron and wanted to check if a point was within it, you would use something like a ConvexHullMesh to create a region, which you can ...
1
vote
1answer
67 views

How to efficiently animate changing mesh on a fixed 3D plot?

Say I'd like to visualise a height function of a torus by animating a plane going upwards, and highlighting the intersection via Mesh/...
9
votes
1answer
136 views

Why do some PlotThemes not work with Mesh as expected? What can be done about it?

While updating my answer for (189038) I noted that some PlotThemes do not work with Mesh in a meaningful way: ...
5
votes
1answer
109 views

How to draw surface with four space curves as boundaries

How to draw a surface with four space curves as boundaries of the surface? ...
4
votes
1answer
117 views

MeshTools package: can one translate 3d meshes in order to then merge them?

I have created a 3d region for Laplace's eqn ...
11
votes
4answers
641 views

Area/Volume of a 2D/3D object as it is filled up with water

How could I get the volume of water on a region as it is filled up with water from below? Assume gravity points in some appropriate downward axis like -y (or -z in 3D) so the water fills upward from ...

1
2
3 4 5
13