editor › Globals › GridInferrerCriterion
Class: GridInferrerCriterion
Hierarchy
- GridInferrerCriterion
↳ ConnectorPreferabilityCriterion
↳ DistanceToSurfaceCenterCriterion
↳ NumberOfOccurrencesCriterion
↳ NumberOfResultingSurfacesCriterion
↳ OrientationTowardsGroundCriterion
↳ ResultingSurfaceAreaCriterion
Index
Constructors
Methods
Constructors
constructor
+ new GridInferrerCriterion(): GridInferrerCriterion
Defined in src/modules/kyub.core.boxel/src/GridInferring/GridInferrerCriterion.ts:10
Returns: GridInferrerCriterion
Methods
Abstract score
▸ score(context: AlignmentContext, meshPoint: Vector3, occurrences: number): number
Defined in src/modules/kyub.core.boxel/src/GridInferring/GridInferrerCriterion.ts:22
Scores the given alignment according to one metric and returns an absolute number, that represents this score.
Parameters:
| Name | Type | Description |
|---|---|---|
context |
AlignmentContext | - |
meshPoint |
Vector3 | - |
occurrences |
number | The number of times this alignment occurred, i.e. the same grid was inferred from different features of the base surface. |
Returns: number