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

QEFData

A data container for the QEF solver.

Constructor Summary

Public Constructor
public

Constructs a new QEF data container.

Member Summary

Public Members
public

The amount of accumulated surface intersection points.

Method Summary

Public Methods
public

add(p: Vector3, n: Vector3)

Adds the given surface intersection point and normal.

public

Adds an entire data set.

public

clear()

Clears this data.

public

Clones this data.

public

Copies values from a given data instance.

public

set(ata: SymmetricMatrix3, atb: Vector3, massPointSum: Vector3, numPoints: Vector3): QEFData

Sets the values of this data instance.

Public Constructors

public constructor() source

Constructs a new QEF data container.

Public Members

public numPoints: Number source

The amount of accumulated surface intersection points.

Public Methods

public add(p: Vector3, n: Vector3) source

Adds the given surface intersection point and normal.

Params:

NameTypeAttributeDescription
p Vector3

An intersection point.

n Vector3

A surface intersection normal.

public addData(d: QEFData) source

Adds an entire data set.

Params:

NameTypeAttributeDescription
d QEFData

QEF data.

public clear() source

Clears this data.

public clone(): QEFData source

Clones this data.

Return:

QEFData

The cloned data.

public copy(d: QEFData): QEFData source

Copies values from a given data instance.

Params:

NameTypeAttributeDescription
d QEFData

The data to copy.

Return:

QEFData

This data.

public set(ata: SymmetricMatrix3, atb: Vector3, massPointSum: Vector3, numPoints: Vector3): QEFData source

Sets the values of this data instance.

Params:

NameTypeAttributeDescription
ata SymmetricMatrix3

ATA.

atb Vector3

ATb.

massPointSum Vector3

The accumulated mass points.

numPoints Vector3

The number of mass points.

Return:

QEFData

This data.