struct.from.mesh {espadon}R Documentation

Creation of struct class object from an espadon mesh

Description

The struct.from.mesh function creates a struct object with a unique RoI, defined by the contours of a mesh.

Usage

struct.from.mesh(
  mesh,
  z,
  thickness = NULL,
  roi.name = mesh$object.alias,
  roi.nb = 1,
  roi.color = "#ff0000",
  roi.type = "",
  alias = "",
  description = NULL,
  force.closed = TRUE,
  verbose = TRUE,
  ...
)

Arguments

mesh

espadon mesh class object.

z

z-coordinate vector where mesh contours are computed.

thickness

struct thickness between 2 adjacent contours. If NULL (default), it is deduced from z.

roi.name

Character string, representing the name of created RoI.

roi.nb

Positive integer, representing the number of created RoI.

roi.color

Color of the created RoI, in hex code format ("#RRGGBB").

roi.type

Type of RoI, from among "", "EXTERNAL", "PTV", "CTV", "GTV", "TREATED_VOLUME", "IRRAD_VOLUME", "OAR", "BOLUS", "AVOIDANCE", "ORGAN", "MARKER", "REGISTRATION", "ISOCENTER", "CONTRAST_AGENT", "CAVITY", "BRACHY_CHANNEL", "BRACHY_ACCESSORY", "BRACHY_SRC_APP", "BRACHY_CHNL_SHLD", "SUPPORT", "FIXATION", "DOSE_REGION","CONTROL" and "DOSE_MEASUREMENT".

alias

Character string, $alias of the created object.

description

Character string, describing the the created object.

force.closed

Boolean. Set to TRUE when the mesh represents the surface of a closed volume.

verbose

Boolean. If TRUE (default), a progress bar indicates the state of calculation.

...

Others parameters

Value

Returns a "struct" class object (see espadon.class for class definition), including the unique roi.name as region of interest.

Examples

# Creation of an espadon mesh of a cube
M <- obj.create (class = "mesh")
M$mesh <- Rvcg::vcgIsotropicRemeshing (Rvcg::vcgBox(),0.5) 
M$nb.faces <- ncol (M$mesh$it)

S <- struct.from.mesh (M, z = seq(-1,1,0.5))
display.3D.contour(S)

[Package espadon version 1.7.0 Index]