Back to FabImage Library website
You are here: Start » Function Reference » Surface » Surface Basics » SkipEmptySurface

SkipEmptySurface
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Vision3DStandard |
If the input Surface has at least one point defined, then it is copied to the output; otherwise Nil is returned.
Applications: Secures against domain errors caused by empty surfaces, e.g. just before the FitPlaneToSurface filter is to be invoked.
Syntax
C++
C#
void fil::SkipEmptySurface ( const fil::Surface& inSurface, ftl::Conditional<fil::Surface>& outNotEmptySurface, bool& outIsNotEmpty )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inSurface | const Surface& | Input surface | |
![]() |
outNotEmptySurface | Conditional<Surface>& | A copy of the input surface, if it is not empty, or Nil otherwise | |
![]() |
outIsNotEmpty | bool& | Indication if the input surface is not empty |