FUNCTION REFERENCE

geometryFromEdges

Attach a 2-D decomposed geometry matrix to a PDE model.

Attach a 2-D decomposed geometry matrix to a PDE model.

Syntax

g = geometryFromEdges(model, dl)

Validates the decomposed geometry matrix dl (as produced by decsg or csgdel), stores the resulting pde.AnalyticGeometry object in model.Geometry, and returns it. The geometry exposes NumFaces, NumEdges, NumVertices, and Vertices (distinct edge endpoints in first-appearance order along dl columns). Raises an error if dl has an invalid row count, an open region boundary, or if model already has a mesh.

Example

R1=[3;4;-1;1;1;-1;-1;-1;1;1]; C1=[1;0;0;0.5;0;0;0;0;0;0]; dl=decsg([R1 C1],'R1-C1',['R1';'C1']'); m=createpde(); g=geometryFromEdges(m,dl); g.NumEdges

Differences from MATLAB: accepts decomposed geometry matrices dl only; function-handle geometry descriptions and 3-D geometries are not supported.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.