Region

Region[reg]

represents a geometric region.

Region[reg,options]

gives a region that uses the specified options.

Details and Options

Examples

open allclose all

Basic Examples  (3)

A unit disk:

A MeshRegion is a Region with an additional mesh structure:

Region represents the underlying three-dimensional point set without the mesh structure:

Style a Region:

Scope  (35)

Regions  (14)

Regions in 1D  (3)

A strictly 0D Region is a point set:

A strictly 1D Region is a collection of line segments:

A Region can combine elements of different dimensions:

Regions in 2D  (5)

A strictly 0D Region is a point set:

A strictly 1D Region is a collection of line segments:

A strictly 2D Region is a collection of polygonal faces:

A Region can combine elements of different dimensions:

Polygons with GeoGridPosition:

Regions in 3D  (6)

A strictly 0D Region is a point set:

A strictly 1D Region is a collection of line segments:

A strictly 2D Region is a collection of polygonal faces:

A strictly 3D Region is a collection of polyhedral volumes:

Polyhedral volume cells include Cone, Cuboid, Pyramid etc.:

A Region can combine elements of different dimensions:

PolygonCoordinates works on polygons of geographic entities:

Polygons with GeoPosition:

Polygons with GeoPositionXYZ:

Polygons with GeoPositionENU:

Presentation  (8)

Use a monochrome theme:

Use a detailed theme:

Use a business theme:

Use a marketing theme:

Use a minimal theme:

Use a scientific theme:

Use a web theme:

Use a classic theme:

Properties  (8)

Embedding dimension:

Geometric dimension:

Point membership test:

Visualize it:

Measure is ArcLength for a 1D region, Area for a 2D region and Volume for a 3D region:

Compute the centroids of each:

Distance from a point:

Visualize it:

Signed distance from a point:

Visualize it:

Nearest point in the region:

A Region is always bounded:

Get its bounds:

Integrate over a Region:

Wrappers  (5)

Use wrappers on a Region:

Wrappers can be nested:

Add interactive behavior with wrappers such as Tooltip:

Any object can be used in the tooltip:

Use Button to trigger actions when clicking a Region:

Use PopupWindow to provide information drilldown:

Options  (96)

AlignmentPoint  (1)

Specify the position to be aligned in 3D Inset, using coordinates:

AspectRatio  (1)

Use numerical values for AspectRatio:

Axes  (2)

Draw all the axes:

Draw the axis but not the axis:

AxesEdge  (2)

Choose the bounding box edges automatically to draw the axes:

Choose the bounding box edges automatically to draw the axes:

AxesLabel  (2)

Place a label for the axis:

Specify a label for each axis:

AxesOrigin  (2)

Determine where the axes cross automatically:

Specify the axes' origin explicitly:

AxesStyle  (2)

Specify the overall axes style, including the ticks and the tick labels:

Specify the style of each axis:

Background  (1)

Specify a background color:

BaselinePosition  (3)

Align the center of a graphic with the baseline of the text:

Specify the baseline of a graphic as a fraction of the height by using Scaled:

Use the axis of a graphic as the baseline:

BaseStyle  (2)

Set the starting style:

Set multiple starting styles:

Boxed  (2)

Draw the edges of the bounding box:

Do not draw the edges of the bounding box:

BoxRatios  (2)

Specify the ratios between the bounding box edges:

Use the actual coordinate values for the ratios:

BoxStyle  (1)

Use dashed lines for the bounding box:

Epilog  (1)

Draw a disk above the graphic, including the axes:

FaceGrids  (4)

Put grids on every face of a 3D graphic:

Put grids on both faces:

Put face grids on the plane:

On the plane, put grid lines on , and :

FaceGridsStyle  (1)

Specify the overall style of face grids:

Frame  (2)

Draw a frame around the whole graphic:

Draw a frame on the left and right edges:

FrameLabel  (2)

Specify frame labels for the bottom and left edges:

Specify labels for each edge:

FrameStyle  (2)

Specify the overall frame style:

Specify the style of each frame edge:

FrameTicks  (3)

Put a frame, but no ticks:

Tick mark labels on the bottom and left frame edges:

Frame ticks on the bottom and right edges:

FrameTicksStyle  (2)

Specify frame tick and frame tick label style:

Specify frame tick style for each edge:

GridLines  (3)

Put grids across a 2D graphic:

Draw grid lines at specific positions:

Specify the style of each grid:

GridLinesStyle  (1)

Specify the overall grid style:

ImageMargins  (3)

Allow no margins outside of ImageSize:

Have 20-point margins on all sides:

Draw grid lines at specific positions:

ImagePadding  (4)

Leave no padding outside the plot range:

Leave enough padding for all objects and labels that are present:

Specify the same padding for all sides in printer's points:

Specify the same padding for all sides in printer's points:

ImageSize  (3)

Use predefined symbolic sizes:

Use an explicit image width:

Use an explicit image width and height:

LabelStyle  (1)

Specify the overall style of all the label-like elements:

Lighting  (4)

Ambient light is uniformly applied to all the surfaces in the scene:

Directional lights with different colors:

Point lights with different colors:

Spotlights with different colors:

PlotLabel  (2)

Display a label on the top of the graphic in TraditionalForm:

Use Style and other typesetting functions to modify how the label appears:

PlotRange  (3)

Display all objects:

Explicitly choose and ranges:

Force clipping at the PlotRange:

PlotRange->s is equivalent to PlotRange->{{-s,s},{-s,s}}:

PlotRangeClipping  (2)

Allow graphics objects to spread beyond PlotRange:

Clip all graphics objects at PlotRange:

PlotRangePadding  (3)

Include 1 coordinate unit of padding on all sides:

Include padding using Scaled coordinates:

Specify different padding on each side:

PlotRegion  (3)

The contents of a graphic use the whole region:

Limit the contents of the graphic to the middle half of the region in each direction:

ImagePadding can also be used to add padding around a graphic:

PlotTheme  (3)

Base Themes  (2)

Use a common base theme:

Use a monochrome theme:

Feature Themes  (1)

Use a theme to draw sampled points from mesh cells:

Prolog  (1)

Define a simple graphic to use as a background:

Use it in multiple mesh regions:

RotateLabel  (2)

Specify that vertical frame labels should be rotated:

Specify that vertical frame labels should not be rotated:

SphericalRegion  (2)

Make a sequence of images be consistently sized, independent of orientation:

Without SphericalRegion, each image is made as big as possible:

Ticks  (3)

Draw the axes but no tick marks:

Place tick marks automatically:

Draw tick marks at specific positions:

TicksStyle  (2)

Specify the styles of the ticks and tick labels:

Specify the styles of and axis ticks separately:

ViewAngle  (1)

Use a specific angle for a simulated camera:

ViewCenter  (1)

Place the top-right corner of the object at the center of the final image:

ViewMatrix  (1)

Orthographic view of a mesh region from the negative direction:

ViewPoint  (3)

Specify the view point using the special scaled coordinates:

Use symbolic view points:

Specify orthographic views:

ViewRange  (2)

By default, the range is sufficient to include all the objects:

Specify the minimum and maximum distances from the camera to be included:

ViewVector  (1)

Specify the view vectors using ordinary coordinates:

ViewVertical  (2)

Use the axis direction as the vertical direction in the final image:

Various views of vertical directions:

Properties & Relations  (2)

Region can have any geometric dimension:

RegionQ can be used to test whether a region is a Region:

Wolfram Research (2017), Region, Wolfram Language function, https://reference.wolfram.com/language/ref/Region.html (updated 2017).

Text

Wolfram Research (2017), Region, Wolfram Language function, https://reference.wolfram.com/language/ref/Region.html (updated 2017).

CMS

Wolfram Language. 2017. "Region." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/Region.html.

APA

Wolfram Language. (2017). Region. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Region.html

BibTeX

@misc{reference.wolfram_2024_region, author="Wolfram Research", title="{Region}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/Region.html}", note=[Accessed: 17-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_region, organization={Wolfram Research}, title={Region}, year={2017}, url={https://reference.wolfram.com/language/ref/Region.html}, note=[Accessed: 17-December-2024 ]}