removeHoles
Description
removes holes with area less than the provided tolerance from the shape and returns a
polygon object.s
= removeHoles(shapeobject
,holetol
)
Examples
Remove Holes from Rectangular Shape of Antenna
Create two rectangular shapes with different dimensions.
rect1 = antenna.Rectangle; rect2 = antenna.Rectangle(Length=1e-7, Width=0.5);
Carve out rectangle2 from rectangle1 and view the resultant shape.
rect3 = rect1 - rect2; show(rect3)
Remove holes from the resultant rectangle.
rect4 = removeHoles(rect3,1e-6); show(rect4)
Input Arguments
shapeobject
— Shape with sliver outlier
2-D shape object
2-D shape with sliver outlier, specified as either:
antenna.Rectangle
,antenna.Circle
,antenna.Ellipse
,antenna.Polygon
, orantenna.Triangle
object.Object created using
shapes
function.shape.Rectangle
,shape.Circle
,shape.Ellipse
, orshape.Polygon
object.
Data Types: function
holetol
— Hole tolerance
nonnegative scalar
Hole tolerance, specified as a nonnegative scalar.
Data Types: double
Version History
Introduced in R2020b
See Also
MATLAB Command
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
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)