프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Param_Float_0 | float | ||
Param_Int_0 | int | ||
Param_Int_1 | int | ||
Type | ShapeConstraintType |
메소드 | 설명 | |
---|---|---|
Create_AtBackOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint |
Constructs a constraint requiring component B to be immediately in back of component A.
|
|
Create_AtFrontOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint |
Constructs a constraint requiring component B to be immediately in front of component A.
|
|
Create_AtLeftOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint |
Constructs a constraint requiring component B to be immediately to the left of component A.
|
|
Create_AtRightOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint |
Constructs a constraint requiring component B to be immediately to the right of component A.
|
|
Create_AwayFromWalls ( ) : ShapeConstraint |
Constructs a constraint requiring the shape to be away from all walls
|
|
Create_NoOtherSurface ( ) : ShapeConstraint |
Constructs a constraint required no other surfaces be included in this shape
|
|
Create_RectanglesAligned ( int componentIndexA, int componentIndexB, float maxDifference = 0.1f ) : ShapeConstraint |
Constructs a constraint requiring the components shapes to be either aligned with parallel or parallel alignment. The difference is the defined as the cosine of the angle between the best aligned axis (i.e. the dot product)
|
|
Create_RectanglesParallel ( int componentIndexA, int componentIndexB ) : ShapeConstraint |
Constructs a constraint requiring the components shapes longer edges to have parallel alignment.
|
|
Create_RectanglesPerpendicular ( int componentIndexA, int componentIndexB ) : ShapeConstraint |
Constructs a constraint requiring the components shapes longer edges to have perpendicular alignment.
|
|
Create_RectanglesSameLength ( int componentIndexA, int componentIndexB, float similarityMin = 0.8f ) : ShapeConstraint |
Constructs a constraint requiring the components shapes longest edges to have the same length, within the difference difference parameter. The difference is defined as the ratio of the longest edges of the two components.
|
public static Create_AtBackOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint | ||
componentIndexA | int | |
componentIndexB | int | |
리턴 | ShapeConstraint |
public static Create_AtFrontOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint | ||
componentIndexA | int | |
componentIndexB | int | |
리턴 | ShapeConstraint |
public static Create_AtLeftOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint | ||
componentIndexA | int | |
componentIndexB | int | |
리턴 | ShapeConstraint |
public static Create_AtRightOf ( int componentIndexA, int componentIndexB ) : ShapeConstraint | ||
componentIndexA | int | |
componentIndexB | int | |
리턴 | ShapeConstraint |
public static Create_AwayFromWalls ( ) : ShapeConstraint | ||
리턴 | ShapeConstraint |
public static Create_NoOtherSurface ( ) : ShapeConstraint | ||
리턴 | ShapeConstraint |
public static Create_RectanglesAligned ( int componentIndexA, int componentIndexB, float maxDifference = 0.1f ) : ShapeConstraint | ||
componentIndexA | int | Zero based index of the first component constraint |
componentIndexB | int | Zero based index of the second component constraint |
maxDifference | float | Maximum difference |
리턴 | ShapeConstraint |
public static Create_RectanglesParallel ( int componentIndexA, int componentIndexB ) : ShapeConstraint | ||
componentIndexA | int | Zero based index of the first component constraint |
componentIndexB | int | Zero based index of the second component constraint |
리턴 | ShapeConstraint |
public static Create_RectanglesPerpendicular ( int componentIndexA, int componentIndexB ) : ShapeConstraint | ||
componentIndexA | int | Zero based index of the first component constraint |
componentIndexB | int | Zero based index of the second component constraint |
리턴 | ShapeConstraint |
public static Create_RectanglesSameLength ( int componentIndexA, int componentIndexB, float similarityMin = 0.8f ) : ShapeConstraint | ||
componentIndexA | int | Zero based index of the first component constraint |
componentIndexB | int | Zero based index of the second component constraint |
similarityMin | float | Maximum similarity |
리턴 | ShapeConstraint |