SurfaceGeometrySource-class | R Documentation |
The 'SurfaceGeometrySource' class serves as a factory for creating
SurfaceGeometry
instances. It encapsulates the
meta information required to construct a surface geometry.
This class is designed to facilitate the creation of SurfaceGeometry
objects by providing a standardized way to store and access the required metadata.
It acts as an intermediate step in the process of loading and constructing
surface geometries from various file formats and sources.
meta_info
An object of class SurfaceGeometryMetaInfo
containing the metadata necessary for creating a surface geometry.
SurfaceGeometry
, SurfaceGeometryMetaInfo
# Create a SurfaceGeometryMetaInfo object
meta_info <- new("SurfaceGeometryMetaInfo",
header_file = "surface_meta.txt",
data_file = "surface_data.gii",
file_descriptor = new("FileFormat"),
vertices = 40000L,
faces = 79998L,
embed_dimension = 3L,
label = "white",
hemi = "lh")
# Create a SurfaceGeometrySource object
geom_source <- new("SurfaceGeometrySource", meta_info = meta_info)
# Use geom_source to create a SurfaceGeometry object (hypothetical function)
# surface_geometry <- createSurfaceGeometry(geom_source)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.