21.01.2015 Views

COMSOL Multiphysics™

COMSOL Multiphysics™

COMSOL Multiphysics™

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

geomedit<br />

Purpose<br />

geomedit<br />

Edit geometry object.<br />

Syntax<br />

Description<br />

[g,...] = geomedit(g0,...)<br />

g1 = geomedit(g)<br />

g2 = geomedit(g, g1)<br />

g1 = geomedit(g, ...)splits the geometry object g into primitive objects g1 that<br />

can be edited. Each object in g1 is associated with the object g so that it is possible<br />

to recreate the composite object again.<br />

g2 = geomedit(g, g1) creates the geometry g2 by using the geometry objects in<br />

the cell array g1, with associative information to g, to create a new composite<br />

geometry object that is as similar as possible to g.<br />

geomedit only works for 2D geometries.<br />

The function geomedit accepts the following property/values:<br />

TABLE 1-59: VALID PROPERTY/VALUE PAIRS<br />

PROPERTY VALUE DEFAULT DESCRIPTION<br />

Out stx | ctx | ptx none Output variables. For<br />

more information, see the<br />

entry geomcsg<br />

Examples<br />

The following commands create a geometry containing eight curves, then splits the<br />

geometry into primitive objects, and finally recreates the geometry with one<br />

primitive object omitted:<br />

g = curve2(rect2+circ2);<br />

gg = geomedit(g);<br />

[g2, ctx] = geomedit(g, gg([1:4 6:end]), 'out', {'ctx'});<br />

See Also<br />

geomcsg, geom0, geom1, geom2, geom3, geomanalyze<br />

213

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!