Main class to handle slicing of graphs. Slicing means dividing up the graph into two or more new graphs that can be interacted with individually.
More...
|
void | Slice (int graphNr, Vector3 planeNormal, Vector3 planePos) |
| Slice from a plane. This means that the graph will be divided into two new graphs. One on each side of the slicing plane. More...
|
|
void | SliceFromSelection (int graphNr) |
| Slice based on selected/highlighted points. More...
|
|
List< Point > | GetPoints (int graphID) |
| Helper function to retrieve the points for a certain graph. More...
|
|
|
static List< Point > | SortPoints (IReadOnlyCollection< Point > points, int axis) |
| Sorts the points based on position in a certain axis. More...
|
|
|
override void | OnCreate () |
|
override void | OnUpdate () |
|
Main class to handle slicing of graphs. Slicing means dividing up the graph into two or more new graphs that can be interacted with individually.
◆ GetPoints()
List<Point> CellexalVR.Spatial.SliceGraphSystem.GetPoints |
( |
int |
graphID | ) |
|
Helper function to retrieve the points for a certain graph.
- Parameters
-
graphID | The id of the graph of interest. |
- Returns
◆ Slice()
void CellexalVR.Spatial.SliceGraphSystem.Slice |
( |
int |
graphNr, |
|
|
Vector3 |
planeNormal, |
|
|
Vector3 |
planePos |
|
) |
| |
Slice from a plane. This means that the graph will be divided into two new graphs. One on each side of the slicing plane.
- Parameters
-
graphNr | The id of the graph to slice. |
planeNormal | Normal of the plane used to calculate which side each point is on. |
planePos | Position of plane used to calculate which side each point is on. |
◆ SliceFromSelection()
void CellexalVR.Spatial.SliceGraphSystem.SliceFromSelection |
( |
int |
graphNr | ) |
|
Slice based on selected/highlighted points.
- Parameters
-
◆ SortPoints()
static List<Point> CellexalVR.Spatial.SliceGraphSystem.SortPoints |
( |
IReadOnlyCollection< Point > |
points, |
|
|
int |
axis |
|
) |
| |
|
static |
Sorts the points based on position in a certain axis.
- Parameters
-
points | The points to sort. |
axis | The axis to use for sorting. |
- Returns
The documentation for this class was generated from the following file:
- cellexalvr_cloudxr/Assets/Scripts/Spatial/SliceGraphSystem.cs