Help Center
Find shape vertices
Since R2023b
p = getShapeVertices(shape)
p = getShapeVertices(shape) returns all the vertices used to create the input shape as a n-by-3 matrix of Cartesian coordinates.
p
shape
example
collapse all
Find the vertices used to construct a box.
Create a box centered at origin with length 2 m and width 1 m. Find its vertices.
box = shape.Box(Length=2,Width=1); p = getShapeVertices(shape.Box)
p = 8×3 -0.5000 -1.0000 -1.0000 -0.5000 1.0000 -1.0000 0.5000 -1.0000 -1.0000 0.5000 1.0000 -1.0000 -0.5000 -1.0000 1.0000 -0.5000 1.0000 1.0000 0.5000 -1.0000 1.0000 0.5000 1.0000 1.0000
Shape to find the vertices, specified as a 2-D or 3-D shape object from the Custom 2-D and 3-D Antenna objects.
Example: antenna.Rectangle
antenna.Rectangle
Example: shape.Circle
shape.Circle
Example: shape.Sphere
shape.Sphere
Shape vertices, returned as a n-by-3 matrix of Cartesian coordinates.
Introduced in R2023b
triangulation
mesh
shape.Custom3D
shape.Polygon
antenna.Polygon
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office