Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_ShapeAnalyser Interface Reference

The Shape Analyser provides "points" (Rays/Transforms) with absolute position and vectorDir (vectorUp is not filled) if the shape is closed, the first point is added as the last point FOR THE POLYLINE ONLY (the engine already does it for the spline) More...

Public Member Functions

bool IsClosed ()
 
bool IsSpline ()
 
array< ref SCR_RayGetAbsoluteAnchorPointRays ()
 
array< vector > GetAbsoluteAnchorPoints ()
 
array< vector > GetRelativeAnchorPoints ()
 
array< vector > GetAbsoluteTesselatedPoints ()
 
array< vector > GetRelativeTesselatedPoints ()
 
array< ref SCR_RayGetAbsoluteMiddlePointRays ()
 
array< ref SCR_RayGetAbsoluteTesselatedPointRays ()
 
array< float > GetStats ()
 

Static Public Member Functions

static SCR_ShapeAnalyser CreateFromShape (notnull ShapeEntity shapeEntity)
 

Protected Member Functions

void SCR_ShapeAnalyser ()
 

Protected Attributes

bool m_bIsSpline
 
bool m_bIsClosed
 
ref array< ref SCR_Raym_aAbsoluteAnchorRays
 points as shown by the Vector tool
 
ref array< ref SCR_Raym_aAbsoluteMidPointRays
 tesselated points between two "normal" points, regardless of distance (by num of tesselated points)
 
ref array< ref SCR_Raym_aAbsoluteTesselatedPointRays
 intermediate points
 
ref array< vector > m_aRelativeAnchorPoints
 
ref array< vector > m_aAbsoluteAnchorPoints
 
ref array< vector > m_aRelativeTesselatedPoints
 
ref array< vector > m_aAbsoluteTesselatedPoints
 
float m_fLength2D
 
float m_fLength3D
 
float m_fSurface
 
float m_fMinAltitude
 
float m_fMaxAltitude
 
float m_fMinSlope
 
float m_fMaxSlope
 in radians
 

Detailed Description

The Shape Analyser provides "points" (Rays/Transforms) with absolute position and vectorDir (vectorUp is not filled) if the shape is closed, the first point is added as the last point FOR THE POLYLINE ONLY (the engine already does it for the spline)

Constructor & Destructor Documentation

◆ SCR_ShapeAnalyser()

void SCR_ShapeAnalyser.SCR_ShapeAnalyser ( )
protected

Member Function Documentation

◆ CreateFromShape()

static SCR_ShapeAnalyser SCR_ShapeAnalyser.CreateFromShape ( notnull ShapeEntity shapeEntity)
static
Parameters
[in]shapeEntity

◆ GetAbsoluteAnchorPointRays()

array< ref SCR_Ray > SCR_ShapeAnalyser.GetAbsoluteAnchorPointRays ( )
Returns

◆ GetAbsoluteAnchorPoints()

array< vector > SCR_ShapeAnalyser.GetAbsoluteAnchorPoints ( )
Returns
absolute anchor points positions

◆ GetAbsoluteMiddlePointRays()

array< ref SCR_Ray > SCR_ShapeAnalyser.GetAbsoluteMiddlePointRays ( )
Returns

◆ GetAbsoluteTesselatedPointRays()

array< ref SCR_Ray > SCR_ShapeAnalyser.GetAbsoluteTesselatedPointRays ( )
Returns

◆ GetAbsoluteTesselatedPoints()

array< vector > SCR_ShapeAnalyser.GetAbsoluteTesselatedPoints ( )
Returns
absolute tesselated points positions

◆ GetRelativeAnchorPoints()

array< vector > SCR_ShapeAnalyser.GetRelativeAnchorPoints ( )
Returns
relative anchor points positions

◆ GetRelativeTesselatedPoints()

array< vector > SCR_ShapeAnalyser.GetRelativeTesselatedPoints ( )
Returns
relative tesselated points positions

◆ GetStats()

array< float > SCR_ShapeAnalyser.GetStats ( )
Returns
length2D, length3D, surface (-1 if shape is not closed), minAltitude, maxAltitude, minSlope, maxSlope

◆ IsClosed()

bool SCR_ShapeAnalyser.IsClosed ( )
Returns

◆ IsSpline()

bool SCR_ShapeAnalyser.IsSpline ( )
Returns

Member Data Documentation

◆ m_aAbsoluteAnchorPoints

ref array<vector> SCR_ShapeAnalyser.m_aAbsoluteAnchorPoints
protected

◆ m_aAbsoluteAnchorRays

ref array<ref SCR_Ray> SCR_ShapeAnalyser.m_aAbsoluteAnchorRays
protected

points as shown by the Vector tool

◆ m_aAbsoluteMidPointRays

ref array<ref SCR_Ray> SCR_ShapeAnalyser.m_aAbsoluteMidPointRays
protected

tesselated points between two "normal" points, regardless of distance (by num of tesselated points)

◆ m_aAbsoluteTesselatedPointRays

ref array<ref SCR_Ray> SCR_ShapeAnalyser.m_aAbsoluteTesselatedPointRays
protected

intermediate points

◆ m_aAbsoluteTesselatedPoints

ref array<vector> SCR_ShapeAnalyser.m_aAbsoluteTesselatedPoints
protected

◆ m_aRelativeAnchorPoints

ref array<vector> SCR_ShapeAnalyser.m_aRelativeAnchorPoints
protected

◆ m_aRelativeTesselatedPoints

ref array<vector> SCR_ShapeAnalyser.m_aRelativeTesselatedPoints
protected

◆ m_bIsClosed

bool SCR_ShapeAnalyser.m_bIsClosed
protected

◆ m_bIsSpline

bool SCR_ShapeAnalyser.m_bIsSpline
protected

◆ m_fLength2D

float SCR_ShapeAnalyser.m_fLength2D
protected

◆ m_fLength3D

float SCR_ShapeAnalyser.m_fLength3D
protected

◆ m_fMaxAltitude

float SCR_ShapeAnalyser.m_fMaxAltitude
protected

◆ m_fMaxSlope

float SCR_ShapeAnalyser.m_fMaxSlope
protected

in radians

◆ m_fMinAltitude

float SCR_ShapeAnalyser.m_fMinAltitude
protected

◆ m_fMinSlope

float SCR_ShapeAnalyser.m_fMinSlope
protected

◆ m_fSurface

float SCR_ShapeAnalyser.m_fSurface
protected

The documentation for this interface was generated from the following file: