Documentation

Support

Asset Transformer SDK


User Manual

Python API

C# API

Changelog

Discussions

Asset Transformer SDK

ViewInterface

Class
Read time 18 minutesLast updated 20 hours ago

Inheritance
Inherited Members
Namespace: UnityEngine.Pixyz.View
public class ViewInterface : Interface

Methods

GetLastError

public static string GetLastError()
Returns

Type

Description

string

ConfigureFunctionLogger

[HandleProcessCorruptedStateExceptions]public void ConfigureFunctionLogger(string functionName, bool enableFunction, bool enableParameters, bool enableExecutionTime)
Parameters

Type

Name

Description

stringfunctionName
boolenableFunction
boolenableParameters
boolenableExecutionTime

DestroyContext

Destroy the Vulkan instance. All existing viewers and gpuScenes will also be destroyed and all view module properties will be reset.
[HandleProcessCorruptedStateExceptions]public void DestroyContext()

SuitableGPUAvailable

Returns true if a suitable device is found.
[HandleProcessCorruptedStateExceptions]public bool SuitableGPUAvailable()
Returns

Type

Description

bool

AddAfterFramebufferCreateCallback

public uint AddAfterFramebufferCreateCallback(ViewInterface.AfterFramebufferCreateDelegate callback, IntPtr userData)
Parameters

Type

Name

Description

ViewInterface.AfterFramebufferCreateDelegatecallback
IntPtruserData
Returns

Type

Description

uint

RemoveAfterFramebufferCreateCallback

public void RemoveAfterFramebufferCreateCallback(uint id)
Parameters

Type

Name

Description

uintid

AddAfterViewerPropertyChangedCallback

public uint AddAfterViewerPropertyChangedCallback(ViewInterface.AfterViewerPropertyChangedDelegate callback, IntPtr userData)
Parameters Returns

Type

Description

uint

RemoveAfterViewerPropertyChangedCallback

public void RemoveAfterViewerPropertyChangedCallback(uint id)
Parameters

Type

Name

Description

uintid

AddBeforeFramebufferDeleteCallback

public uint AddBeforeFramebufferDeleteCallback(ViewInterface.BeforeFramebufferDeleteDelegate callback, IntPtr userData)
Parameters

Type

Name

Description

ViewInterface.BeforeFramebufferDeleteDelegatecallback
IntPtruserData
Returns

Type

Description

uint

RemoveBeforeFramebufferDeleteCallback

public void RemoveBeforeFramebufferDeleteCallback(uint id)
Parameters

Type

Name

Description

uintid

AddBeforeViewerPropertyChangedCallback

public uint AddBeforeViewerPropertyChangedCallback(ViewInterface.BeforeViewerPropertyChangedDelegate callback, IntPtr userData)
Parameters Returns

Type

Description

uint

RemoveBeforeViewerPropertyChangedCallback

public void RemoveBeforeViewerPropertyChangedCallback(uint id)
Parameters

Type

Name

Description

uintid

ApplyPlayingAnimations

WARNING: this function is tagged as 'EXPERIMENTAL'
apply the animations.
[HandleProcessCorruptedStateExceptions]public void ApplyPlayingAnimations(ulong time)
Parameters

Type

Name

Description

ulongtimeCurrent time.

GetAnimationPlayerInfo

WARNING: this function is tagged as 'EXPERIMENTAL'
packs all AnimationPlayer-related info about an animation in an object.
[HandleProcessCorruptedStateExceptions]public AnimationPlayerInfo GetAnimationPlayerInfo(uint animation)
Parameters

Type

Name

Description

uintanimationAnimation to get info of.
Returns

Type

Description

AnimationPlayerInfo

IsAnimationPlaying

WARNING: this function is tagged as 'EXPERIMENTAL'
is this animation playing?.
[HandleProcessCorruptedStateExceptions]public bool IsAnimationPlaying(uint animation)
Parameters

Type

Name

Description

uintanimationAnimation to check.
Returns

Type

Description

bool

PauseAllAnimation

WARNING: this function is tagged as 'EXPERIMENTAL'
pauses all animations.
[HandleProcessCorruptedStateExceptions]public void PauseAllAnimation()

PauseAnimation

WARNING: this function is tagged as 'EXPERIMENTAL'
pauses an animation.
[HandleProcessCorruptedStateExceptions]public void PauseAnimation(uint animation)
Parameters

Type

Name

Description

uintanimationAnimation to pause.

PlayAnimation

WARNING: this function is tagged as 'EXPERIMENTAL'
plays an animation.
[HandleProcessCorruptedStateExceptions]public void PlayAnimation(uint animation, double speed = 1, bool loop = false)
Parameters

Type

Name

Description

uintanimationAnimation to play.
doublespeedSpeed.
boolloopShould the animation loop?.

ResumeAllAnimation

WARNING: this function is tagged as 'EXPERIMENTAL'
resumes all animations.
[HandleProcessCorruptedStateExceptions]public void ResumeAllAnimation()

ResumeAnimation

WARNING: this function is tagged as 'EXPERIMENTAL'
resumes an animation.
[HandleProcessCorruptedStateExceptions]public void ResumeAnimation(uint animation)
Parameters

Type

Name

Description

uintanimationAnimation to resume.

SetAnimationFrame

WARNING: this function is tagged as 'EXPERIMENTAL'
set animation's current frame.
[HandleProcessCorruptedStateExceptions]public void SetAnimationFrame(uint animation, ulong frame)
Parameters

Type

Name

Description

uintanimationAnimation to set frame.
ulongframeFrame to set.

SetAnimationLoop

WARNING: this function is tagged as 'EXPERIMENTAL'
set animation's looping status.
[HandleProcessCorruptedStateExceptions]public void SetAnimationLoop(uint animation, bool loop)
Parameters

Type

Name

Description

uintanimationAnimation to set loop status.
boolloopShould the animation loop?.

SetAnimationSpeed

WARNING: this function is tagged as 'EXPERIMENTAL'
set animation's playing speed.
[HandleProcessCorruptedStateExceptions]public void SetAnimationSpeed(uint animation, double speed)
Parameters

Type

Name

Description

uintanimationAnimation to set speed.
doublespeedThe speed.

StopAllAnimation

WARNING: this function is tagged as 'EXPERIMENTAL'
stops all animations.
[HandleProcessCorruptedStateExceptions]public void StopAllAnimation(bool applyDefault = true)
Parameters

Type

Name

Description

boolapplyDefaultShould the default position be applied.

StopAnimation

WARNING: this function is tagged as 'EXPERIMENTAL'
stops an animation.
[HandleProcessCorruptedStateExceptions]public void StopAnimation(uint animation, bool applyDefault = true)
Parameters

Type

Name

Description

uintanimationAnimation to stop.
boolapplyDefaultShould the default position be applied.

AddAnimationPausedOrStoppedCallback

public uint AddAnimationPausedOrStoppedCallback(ViewInterface.AnimationPausedOrStoppedDelegate callback, IntPtr userData)
Parameters

Type

Name

Description

ViewInterface.AnimationPausedOrStoppedDelegatecallback
IntPtruserData
Returns

Type

Description

uint

RemoveAnimationPausedOrStoppedCallback

public void RemoveAnimationPausedOrStoppedCallback(uint id)
Parameters

Type

Name

Description

uintid

AddAnimationPlayedOrResumedCallback

public uint AddAnimationPlayedOrResumedCallback(ViewInterface.AnimationPlayedOrResumedDelegate callback, IntPtr userData)
Parameters

Type

Name

Description

ViewInterface.AnimationPlayedOrResumedDelegatecallback
IntPtruserData
Returns

Type

Description

uint

RemoveAnimationPlayedOrResumedCallback

public void RemoveAnimationPlayedOrResumedCallback(uint id)
Parameters

Type

Name

Description

uintid

AddAnimationPlayingStatusChangedCallback

public uint AddAnimationPlayingStatusChangedCallback(ViewInterface.AnimationPlayingStatusChangedDelegate callback, IntPtr userData)
Parameters Returns

Type

Description

uint

RemoveAnimationPlayingStatusChangedCallback

public void RemoveAnimationPlayingStatusChangedCallback(uint id)
Parameters

Type

Name

Description

uintid

GetD3D11Texture

[HandleProcessCorruptedStateExceptions]public IntPtr GetD3D11Texture(RenderMap renderMap, int viewer = -1)
Parameters

Type

Name

Description

RenderMaprenderMap
intviewer
Returns

Type

Description

IntPtr

GetGLTextureHandle

[HandleProcessCorruptedStateExceptions]public int GetGLTextureHandle(RenderMap renderMap, int viewer = -1)
Parameters

Type

Name

Description

RenderMaprenderMap
intviewer
Returns

Type

Description

int

GetVulkanTexture

[HandleProcessCorruptedStateExceptions]public IntPtr GetVulkanTexture(RenderMap renderMap, int viewer = -1)
Parameters

Type

Name

Description

RenderMaprenderMap
intviewer
Returns

Type

Description

IntPtr

CreateGPUScene

[HandleProcessCorruptedStateExceptions]public int CreateGPUScene(OccurrenceList roots, bool constructEdges = false, bool useIsolate = true)
Parameters

Type

Name

Description

OccurrenceListrootsRoots of the subtrees that will be uploaded to GPU.
boolconstructEdgesConstruct buffer to render edges colored by topology (slower to construct).
booluseIsolateIndicates if the isolate manager should be used for visibility.
Returns

Type

Description

int

DestroyGPUScene

[HandleProcessCorruptedStateExceptions]public void DestroyGPUScene(int scene)
Parameters

Type

Name

Description

intsceneGPU Scene to destroy (previously created by createGPUScene).

GetGlobalGPUScene

Returns (and create if it does not exist) a global GPU scene (with the scene root) to be used commonly by several clients.
[HandleProcessCorruptedStateExceptions]public int GetGlobalGPUScene()
Returns

Type

Description

int

GetLastAABB

Return the lastAABB computed during a frame drawing, requires the viewer property ComputeLastAABB to be True.
[HandleProcessCorruptedStateExceptions]public AABB GetLastAABB(int scene, int viewer)
Parameters

Type

Name

Description

intsceneIdentifier of the GPU scene to get the last AABB from.
intviewer
Returns

Type

Description

AABB

GetOccurrenceIndex

Returns the occurrence index in the viewer buffers. Can be used for mapping an index retrieved in a GLTextureHandle id map.
[HandleProcessCorruptedStateExceptions]public uint GetOccurrenceIndex(uint occurrence, int scene)
Parameters

Type

Name

Description

uintoccurrenceOccurrence identifier.
intsceneScene identifier.
Returns

Type

Description

uint

GetSceneIndex

Returns the GPU scene index in the viewer buffers. Can be used for mapping an index retrieved in a GLTextureHandle id map.
[HandleProcessCorruptedStateExceptions]public uint GetSceneIndex(int scene, int viewer)
Parameters

Type

Name

Description

intsceneGPU scene identifier.
intviewerViewer identifier.
Returns

Type

Description

uint

LockGPUSceneUpdate

Lock the mutex that ensure no update of the gpu scene is done between lock/unlock.
[HandleProcessCorruptedStateExceptions]public void LockGPUSceneUpdate(int scene)
Parameters

Type

Name

Description

intsceneIdentifier of the GPU scene to lock update for.

LockGPUScenesUpdate

Lock the mutex that ensure no update of multiple gpu scenes is done between lock/unlock.
[HandleProcessCorruptedStateExceptions]public void LockGPUScenesUpdate(GPUSceneList scenes)
Parameters

Type

Name

Description

GPUSceneListscenesIdentifiers of the GPU scenes to lock update for.

TryLockGPUSceneUpdate

Try to lock the mutex that ensure no update of the gpu scene is done between lock/unlock, returns true if the mutex has been locked, false if it was already locked.
[HandleProcessCorruptedStateExceptions]public bool TryLockGPUSceneUpdate(int scene)
Parameters

Type

Name

Description

intsceneIdentifier of the GPU scene to try to lock update for.
Returns

Type

Description

bool

TryLockGPUScenesUpdate

Try to lock the mutex that ensure no update of multiple gpu scenes is done between lock/unlock, returns true if the mutex has been locked, false if it was already locked.
[HandleProcessCorruptedStateExceptions]public BoolList TryLockGPUScenesUpdate(GPUSceneList scenes)
Parameters

Type

Name

Description

GPUSceneListscenesIdentifiers of the GPU scenes to try to lock update for.
Returns

Type

Description

BoolList

UnlockGPUSceneUpdate

Unlock the mutex that ensure no update of the gpu scene is done between lock/unlock.
[HandleProcessCorruptedStateExceptions]public void UnlockGPUSceneUpdate(int scene)
Parameters

Type

Name

Description

intsceneIdentifier of the GPU scene to unlock update for.

UnlockGPUScenesUpdate

Unlock the mutex that ensure no update of multiple gpu scenes is done between lock/unlock.
[HandleProcessCorruptedStateExceptions]public void UnlockGPUScenesUpdate(GPUSceneList scenes)
Parameters

Type

Name

Description

GPUSceneListscenesIdentifiers of the GPU scenes to unlock update for.

AddGPUScene

Add a GPU scene to a viewer.
[HandleProcessCorruptedStateExceptions]public void AddGPUScene(int scene, int viewer = -1)
Parameters

Type

Name

Description

intsceneGPU Scene to render in the viewer.
intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).

CreateViewer

Create a new viewer.
[HandleProcessCorruptedStateExceptions]public int CreateViewer(int width, int height, GraphicsContext sharedContext = null, int nbViews = 1)
Parameters

Type

Name

Description

intwidthWidth of the viewer framebuffer.
intheightHeight of the viewer framebuffer.
GraphicsContextsharedContextInterop context handle.
intnbViewsNb views.
Returns

Type

Description

int

DestroyViewer

[HandleProcessCorruptedStateExceptions]public void DestroyViewer(int viewer)
Parameters

Type

Name

Description

intviewerViewer to destroy.

DrawCappingPlane

Create an occurrence that holds the mesh of the surfaces that have been cut by the cutting plane.
[HandleProcessCorruptedStateExceptions]public uint DrawCappingPlane(uint cuttingPlane)
Parameters

Type

Name

Description

uintcuttingPlaneCutting plane component for which we create the capping plane.
Returns

Type

Description

uint

GetAutoClipping

Automatically compute the near and far planes depending on the scene.
[HandleProcessCorruptedStateExceptions]public Point2 GetAutoClipping(int viewer, Point3 cameraPos)
Parameters

Type

Name

Description

intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).
Point3cameraPos
Returns

Type

Description

Point2

GetCameraFrontAxis

Get the front axis of the nth view matrix of a given viewer.
[HandleProcessCorruptedStateExceptions]public Point3 GetCameraFrontAxis(int viewer = -1, uint matrixIndex = 0)
Parameters

Type

Name

Description

intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).
uintmatrixIndexIndex of the view matrix to use.
Returns

Type

Description

Point3

GetCameraPosition

Get the position of the nth view matrix of a given viewer.
[HandleProcessCorruptedStateExceptions]public Point3 GetCameraPosition(int viewer = -1, uint matrixIndex = 0)
Parameters

Type

Name

Description

intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).
uintmatrixIndexIndex of the view matrix to use.
Returns

Type

Description

Point3

GetCameraRightAxis

Get the right axis of the nth view matrix of a given viewer.
[HandleProcessCorruptedStateExceptions]public Point3 GetCameraRightAxis(int viewer = -1, uint matrixIndex = 0)
Parameters

Type

Name

Description

intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).
uintmatrixIndexIndex of the view matrix to use.
Returns

Type

Description

Point3

GetCameraUpAxis

Get the up axis of the nth view matrix of a given viewer.
[HandleProcessCorruptedStateExceptions]public Point3 GetCameraUpAxis(int viewer = -1, uint matrixIndex = 0)
Parameters

Type

Name

Description

intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).
uintmatrixIndexIndex of the view matrix to use.
Returns

Type

Description

Point3

GetViewerProperty

Get a viewer property value.
[HandleProcessCorruptedStateExceptions]public string GetViewerProperty(string propertyName, int viewer = -1)
Parameters

Type

Name

Description

stringpropertyName
intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).
Returns

Type

Description

string

GetViewerPropertyInfo

Get a viewer property info.
[HandleProcessCorruptedStateExceptions]public PropertyInfo GetViewerPropertyInfo(string propertyName, int viewer = -1)
Parameters

Type

Name

Description

stringpropertyName
intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).
Returns

Type

Description

PropertyInfo

GetViewerSize

Retrieve the viewport size of a viewer.
[HandleProcessCorruptedStateExceptions]public GetViewerSizeReturn GetViewerSize(int viewer = -1)
Parameters

Type

Name

Description

intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).
Returns

Type

Description

GetViewerSizeReturn

GetViewerStats

Returns the number of rendered occurrences and triangles. (Warning: this function does not handle isolate nor invertVisibility viewer property).
[HandleProcessCorruptedStateExceptions]public GetViewerStatsReturn GetViewerStats(int viewer = -1)
Parameters

Type

Name

Description

intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).
Returns

Type

Description

GetViewerStatsReturn

IdentifySelectedEdges

WARNING: this function is tagged as 'EXPERIMENTAL'
Identify selected edges.
[HandleProcessCorruptedStateExceptions]public void IdentifySelectedEdges(int scene)
Parameters

Type

Name

Description

intsceneIdentifier of the GPU scene to identify the edges from.

InvertSelectPrimitives

Invert the selection of the primitives (polygons, surfaces) contained in the given rectangle.
[HandleProcessCorruptedStateExceptions]public void InvertSelectPrimitives(int xMin, int xMax, int yMin, int yMax, PrimitiveSelectionType primitiveType, int viewer = -1)
Parameters

Type

Name

Description

intxMin
intxMax
intyMin
intyMax
PrimitiveSelectionTypeprimitiveType
intviewer

ListViewerProperties

Get the list of viewer properties.
[HandleProcessCorruptedStateExceptions]public PropertyInfoList ListViewerProperties(int viewer = -1)
Parameters

Type

Name

Description

intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).
Returns

Type

Description

PropertyInfoList

Pick

[HandleProcessCorruptedStateExceptions]public PickReturn Pick(int x, int y, int viewer = -1)
Parameters

Type

Name

Description

intx
inty
intviewer
Returns

Type

Description

PickReturn

PickRectangle

[HandleProcessCorruptedStateExceptions]public OccurrenceList PickRectangle(int xMin, int xMax, int yMin, int yMax, int viewer = -1, bool inDepth = false)
Parameters

Type

Name

Description

intxMin
intxMax
intyMin
intyMax
intviewer
boolinDepth
Returns

Type

Description

OccurrenceList

RefreshViewer

Refresh the viewer.
[HandleProcessCorruptedStateExceptions]public void RefreshViewer(int viewer = -1)
Parameters

Type

Name

Description

intviewerViewer to refresh.

RemoveGPUScene

Remove a viewer root.
[HandleProcessCorruptedStateExceptions]public void RemoveGPUScene(int scene, int viewer = -1)
Parameters

Type

Name

Description

intsceneGPU Scene to remove from the viewer.
intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).

ResizeViewer

[HandleProcessCorruptedStateExceptions]public void ResizeViewer(int width, int height, int viewer = -1)
Parameters

Type

Name

Description

intwidthWidth of the viewer framebuffer.
intheightHeight of the viewer framebuffer.
intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).

SelectPrimitives

Select the primitives (polygons, surfaces) contained in the given rectangle.
[HandleProcessCorruptedStateExceptions]public void SelectPrimitives(int xMin, int xMax, int yMin, int yMax, PrimitiveSelectionType primitiveType, int viewer = -1)
Parameters

Type

Name

Description

intxMin
intxMax
intyMin
intyMax
PrimitiveSelectionTypeprimitiveType
intviewer

SetDefaultViewerId

Set default viewer id. This viewer will be used in other functions taking a Viewer as a parameter. Useful if a viewer needs to be shared across different contexts.
[HandleProcessCorruptedStateExceptions]public void SetDefaultViewerId(int viewer)
Parameters

Type

Name

Description

intviewer

SetViewerProperty

Set a viewer property value.
[HandleProcessCorruptedStateExceptions]public void SetViewerProperty(string propertyName, string propertyValue, int viewer = -1)
Parameters

Type

Name

Description

stringpropertyName
stringpropertyValue
intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).

UnselectPrimitives

Unselect the primitives (polygons, surfaces) contained in the given rectangle.
[HandleProcessCorruptedStateExceptions]public void UnselectPrimitives(int xMin, int xMax, int yMin, int yMax, PrimitiveSelectionType primitiveType, int viewer = -1)
Parameters

Type

Name

Description

intxMin
intxMax
intyMin
intyMax
PrimitiveSelectionTypeprimitiveType
intviewer

GetCompositedImage

[HandleProcessCorruptedStateExceptions]public ImageDefinition GetCompositedImage(int viewer)
Parameters

Type

Name

Description

intviewer
Returns

Type

Description

ImageDefinition

GetRenderMapImage

[HandleProcessCorruptedStateExceptions]public ImageDefinition GetRenderMapImage(int viewer, RenderMap renderMap)
Parameters

Type

Name

Description

intviewer
RenderMaprenderMap
Returns

Type

Description

ImageDefinition

TakeScreenshot

[HandleProcessCorruptedStateExceptions]public void TakeScreenshot(string fileName, int viewer)
Parameters

Type

Name

Description

stringfileNamePath where to save the screenshot.
intviewer

CreateStreamedViewer

Create a viewer for streaming.
[HandleProcessCorruptedStateExceptions]public StreamedViewerInfo CreateStreamedViewer(int width, int height, EncoderSettings encoderSettings = null, bool useWebRTC = false, WebRTCInfo? webRTCInfo = null)
Parameters

Type

Name

Description

intwidthWidth of the viewer framebuffer.
intheightHeight of the viewer framebuffer.
EncoderSettingsencoderSettingsSettings used for the encoder.
booluseWebRTCSwitch between raw websockets and webRTC.
WebRTCInfowebRTCInfoInfo for web rtc signaling connection.
Returns

Type

Description

StreamedViewerInfo

ResizeStreamedViewer

[HandleProcessCorruptedStateExceptions]public void ResizeStreamedViewer(int width, int height, int viewer = -1, EncoderSettings encoderSettings = null)
Parameters

Type

Name

Description

intwidthWidth of the viewer framebuffer.
intheightHeight of the viewer framebuffer.
intviewer
EncoderSettingsencoderSettingsSettings used for the encoder.

StartRecording

Record viewer in a file.
[HandleProcessCorruptedStateExceptions]public void StartRecording(string filePath, int viewer, EncoderSettings encoderSettings = null)
Parameters

Type

Name

Description

stringfilePathFile in which video while be saved.
intviewerViewer to use for recording video.
EncoderSettingsencoderSettingsSettings used for the encoder.

StopRecording

Stop recording video.
[HandleProcessCorruptedStateExceptions]public void StopRecording(int viewer)
Parameters

Type

Name

Description

intviewerViewer to use for recording video.

FitCamera

Set the viewer matrices to adjust the camera to the scene.
[HandleProcessCorruptedStateExceptions]public void FitCamera(Point3 direction, CameraType cameraType = CameraType.Orthographic, double fov = 90, int viewer = -1, OccurrenceList fitToOccurrences = null)
Parameters

Type

Name

Description

Point3directionCamera direction.
CameraTypecameraTypeCamera type, Orthographic or Perspective.
doublefovField of view (perspective mode only).
intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).
OccurrenceListfitToOccurrences

GetViewerMatrices

[HandleProcessCorruptedStateExceptions]public GetViewerMatricesReturn GetViewerMatrices(int viewer = -1)
Parameters

Type

Name

Description

intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).
Returns

SetViewerMatrices

[HandleProcessCorruptedStateExceptions]public void SetViewerMatrices(Matrix4List views, Matrix4List projs, Point2 clipping, int viewer = -1)
Parameters

Type

Name

Description

Matrix4Listviews
Matrix4Listprojs
Point2clipping
intviewerViewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).

VisibilityShoot

Render one frame of the visibility session.
[HandleProcessCorruptedStateExceptions]public OccurrenceList VisibilityShoot(int viewer = -1, bool parts = true, bool patches = true, bool polygons = true, bool countOnce = false)
Parameters

Type

Name

Description

intviewerViewer to use for the visibility shoot.
boolpartsIf false, optimize when parts seen are not wanted.
boolpatchesIf false, optimize when patches seen are not wanted.
boolpolygonsIf false, optimize when polygons seen are not wanted.
boolcountOnceOptimize when it is not needed to count the numbers of pixels seen during the session.
Returns

Type

Description

OccurrenceList