Home Reference Source
import {SurfaceExtractor} from 'rabbit-hole'
public class | source

SurfaceExtractor

Extends:

DataProcessor → SurfaceExtractor

Indirect Implements:

A surface extractor that generates a polygonal mesh from Hermite data.

Constructor Summary

Public Constructor
public

Constructs a new surface extractor.

Member Summary

Public Members
public

A container for the data that will be returned to the main thread.

Method Summary

Public Methods
public

createTransferList(transferList: Array): Transferable[]

Creates a list of transferable items.

public

process(request: ExtractionRequest): *

Extracts a surface from the given Hermite data.

public

Prepares a response that can be send back to the main thread.

Inherited Summary

From class DataProcessor
protected

A set of Hermite data that will be used during processing.

protected

A container for the data that will be returned to the main thread.

public

createTransferList(transferList: Array): Transferable[]

Creates a list of transferable items.

public

Returns the data of this processor.

public

Processes the given request.

public

Prepares a response that can be send back to the main thread.

Public Constructors

public constructor() source

Constructs a new surface extractor.

Override:

DataProcessor#constructor

Public Members

public response: ExtractionResponse source

A container for the data that will be returned to the main thread.

Override:

DataProcessor#response

Public Methods

public createTransferList(transferList: Array): Transferable[] source

Creates a list of transferable items.

Override:

DataProcessor#createTransferList

Params:

NameTypeAttributeDescription
transferList Array
  • optional

An optional target list. The transferable items will be added to this list.

Return:

Transferable[]

The transfer list.

public process(request: ExtractionRequest): * source

Extracts a surface from the given Hermite data.

Override:

DataProcessor#process

Params:

NameTypeAttributeDescription
request ExtractionRequest

An extraction request.

Return:

*

public respond(): ExtractionResponse source

Prepares a response that can be send back to the main thread.

Should be used together with SurfaceExtractor#createTransferList.

Override:

DataProcessor#respond

Return:

ExtractionResponse

A response.