shape has NaN vertices when adding new shapes to the aggregate shape encloses a void; error assigning shape to antenna
I am creating a PCB antenna pattern adding together copper Polygons and rectangles to make the PCB trace pattern. The copper traces short back on themself forming a region with voids in it.
I have used shape.Rectangle() and shape.Polygon() to create the elements and added them together.
When I show the copper it looks right (needs a little cleanup, but OK).
When I show or mesh the antenna it throws a triangulation error.
Adding the last rectangle that closes the shape causes an NaN. This error was NOT happening in another pattern (make a shape, remove a notch from an edge, bridge the notch with a rectangle…).
…
copper = shape.Polygon(‘Vertices’, 0.001*[MinX MinY 0; MinX MaxY 0; MaxX MaxY 0; MaxX MinY 0]);
stem = shape.Rectangle ("Center", 0.001*[StemX MaxY+StemLen/2], ‘Length’, 0.001*StemWid, ‘Width’, 0.001*StemLen);
copper = copper + stem;
… add rectangles till a closed loop is formed. feed point in stem and loading reactance at far end…
…
show(copper); % looks OK other than jagged corners, see below
Ant = customAntenna (‘Shape’, copper, ‘Load’, Load);
show(Ant); % –> error. If commented, mesh(Ant, …) throws similar error (same error, different call back path)
createFeed (Ant, FeedPoint, 1);
meshconfig (Ant, ‘manual’);
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005);
show(Ant) –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in em.MeshGeometry/protectedshow
Error in em.MeshGeometryAnalysis/show (line 31)
protectedshow(obj,varargin{:});
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in customAntenna/meshGenerator (line 306)
createGeometry(obj);
Error in em.MeshGeometry/updateMesh
Error in em.MeshGeometry/protectedmesh
Error in em.MeshGeometryAnalysis/mesh (line 66)
protectedmesh(obj,varargin{:});
Error in patchNotch (line 89)
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005);I am creating a PCB antenna pattern adding together copper Polygons and rectangles to make the PCB trace pattern. The copper traces short back on themself forming a region with voids in it.
I have used shape.Rectangle() and shape.Polygon() to create the elements and added them together.
When I show the copper it looks right (needs a little cleanup, but OK).
When I show or mesh the antenna it throws a triangulation error.
Adding the last rectangle that closes the shape causes an NaN. This error was NOT happening in another pattern (make a shape, remove a notch from an edge, bridge the notch with a rectangle…).
…
copper = shape.Polygon(‘Vertices’, 0.001*[MinX MinY 0; MinX MaxY 0; MaxX MaxY 0; MaxX MinY 0]);
stem = shape.Rectangle ("Center", 0.001*[StemX MaxY+StemLen/2], ‘Length’, 0.001*StemWid, ‘Width’, 0.001*StemLen);
copper = copper + stem;
… add rectangles till a closed loop is formed. feed point in stem and loading reactance at far end…
…
show(copper); % looks OK other than jagged corners, see below
Ant = customAntenna (‘Shape’, copper, ‘Load’, Load);
show(Ant); % –> error. If commented, mesh(Ant, …) throws similar error (same error, different call back path)
createFeed (Ant, FeedPoint, 1);
meshconfig (Ant, ‘manual’);
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005);
show(Ant) –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in em.MeshGeometry/protectedshow
Error in em.MeshGeometryAnalysis/show (line 31)
protectedshow(obj,varargin{:});
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in customAntenna/meshGenerator (line 306)
createGeometry(obj);
Error in em.MeshGeometry/updateMesh
Error in em.MeshGeometry/protectedmesh
Error in em.MeshGeometryAnalysis/mesh (line 66)
protectedmesh(obj,varargin{:});
Error in patchNotch (line 89)
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); I am creating a PCB antenna pattern adding together copper Polygons and rectangles to make the PCB trace pattern. The copper traces short back on themself forming a region with voids in it.
I have used shape.Rectangle() and shape.Polygon() to create the elements and added them together.
When I show the copper it looks right (needs a little cleanup, but OK).
When I show or mesh the antenna it throws a triangulation error.
Adding the last rectangle that closes the shape causes an NaN. This error was NOT happening in another pattern (make a shape, remove a notch from an edge, bridge the notch with a rectangle…).
…
copper = shape.Polygon(‘Vertices’, 0.001*[MinX MinY 0; MinX MaxY 0; MaxX MaxY 0; MaxX MinY 0]);
stem = shape.Rectangle ("Center", 0.001*[StemX MaxY+StemLen/2], ‘Length’, 0.001*StemWid, ‘Width’, 0.001*StemLen);
copper = copper + stem;
… add rectangles till a closed loop is formed. feed point in stem and loading reactance at far end…
…
show(copper); % looks OK other than jagged corners, see below
Ant = customAntenna (‘Shape’, copper, ‘Load’, Load);
show(Ant); % –> error. If commented, mesh(Ant, …) throws similar error (same error, different call back path)
createFeed (Ant, FeedPoint, 1);
meshconfig (Ant, ‘manual’);
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005);
show(Ant) –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in em.MeshGeometry/protectedshow
Error in em.MeshGeometryAnalysis/show (line 31)
protectedshow(obj,varargin{:});
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); –> error
Error using triangulation
The coordinates of the input points must be finite values; Inf and NaN are not permitted.
Error in customAntenna/createGeometry (line 235)
tri = triangulation(tt.ConnectivityList,vert);
Error in customAntenna/meshGenerator (line 306)
createGeometry(obj);
Error in em.MeshGeometry/updateMesh
Error in em.MeshGeometry/protectedmesh
Error in em.MeshGeometryAnalysis/mesh (line 66)
protectedmesh(obj,varargin{:});
Error in patchNotch (line 89)
mesh(Ant, ‘MaxEdgeLength’, .06,’MinEdgeLength’, 0.0005); customantenna, shape, triangulation error, nan MATLAB Answers — New Questions