MATLAB 도움말 센터
Delete geometry cells
Since R2025a
g2 = deleteCell(g1,cellIDs)
g2 = deleteCell(g1,cellIDs) deletes cells specified by cellIDs from the geometry g1.
g2
g1
cellIDs
example
collapse all
Modify the damping mounts geometry by deleting two mounts located diagonally.
Import the geometry representing four damping mounts.
g = fegeometry("DampingMounts.stl")
g = fegeometry with properties: NumCells: 4 NumFaces: 16 NumEdges: 16 NumVertices: 16 Vertices: [16×3 double] Mesh: []
Plot the imported geometry. The geometry has four cells: one cell representing each mount.
pdegplot(g)
Find the IDs of the cells containing the points with these coordinates: (50,250,50) and (1450,1200,50).
cellIDs = findCell(g,[50 250 50; 1450 1200 50])
cellIDs = 1×2 2 3
Show the two points on the geometry plot.
pdegplot(g,FaceAlpha=0.3,CellLabels="on") hold on scatter3([50 1450],[250 1200],[50 50],"filled","red")
Delete the cells containing the points with the specified coordinates.
g = deleteCell(g,cellIDs)
g = fegeometry with properties: NumCells: 2 NumFaces: 8 NumEdges: 8 NumVertices: 8 Vertices: [8×3 double] Mesh: []
Plot the resulting geometry.
figure pdegplot(g,CellLabels="on",FaceAlpha=0.3)
fegeometry
3-D geometry, specified as an fegeometry object.
N
Cell IDs, specified as an N-by-1 vector of positive integers.
Resulting 3-D geometry, returned as an fegeometry object.
Introduced in R2025a
findCell
mergeCells
addCell
addFace
addVertex
addVoid
rotate
scale
translate
extrude
generateMesh
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의