C# 클래스 Algorithmix.MatchData

파일 보기 프로젝트 열기: Algorithmix/Papyrus 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ChamferScan double[]
ChamferSimilarity double
First Side
NORMALIZATION_ENABLED bool
ORIENTATION_PENALTY bool
Offset int
Second Side

공개 메소드들

메소드 설명
ClusterNodes ( MatchData matchData ) : Cluster

This Method ensures a match is possible and if so clusters two nodes

CompareShred ( Shred first, Shred second, Direction directionA, Orientation orientationA, Direction directionB, Orientation orientationB ) : MatchData

Given two shreds, calculate the offset value at which the two shreds are most similar

ForceClusterNodes ( MatchData matchData, Match match = Match.NonInverted ) : Cluster

This Method clusters two nodes forcibly with no match

MatchData ( double chamferSimilarity, int offset, double scan, Side first, Side second ) : System

Creates a MatchData Object for encapsulating all the comparison MatchData

SmartClusterNodes ( MatchData matchData ) : INode

비공개 메소드들

메소드 설명
IsFit ( INode root, Shred shred, Side side ) : Direction>.Tuple

IsFit checks if given a specified side, it can be fit with a shreds's edge This Also returns a match object

IsMatch ( MatchData matchData, INode firstRoot, INode secondRoot ) : ClusterData

IsMatch determines if two shreds can be placed next to each other and thus matched. It returns a match.inverted or match.noninverted if possible or match.impossible if not. You shouldn't need to call IsMatch, rather use the safe ClusterNodes() method which will do it for you

메소드 상세

ClusterNodes() 공개 정적인 메소드

This Method ensures a match is possible and if so clusters two nodes
public static ClusterNodes ( MatchData matchData ) : Cluster
matchData MatchData MatchData Object
리턴 Cluster

CompareShred() 공개 정적인 메소드

Given two shreds, calculate the offset value at which the two shreds are most similar
public static CompareShred ( Shred first, Shred second, Direction directionA, Orientation orientationA, Direction directionB, Orientation orientationB ) : MatchData
first Shred The first shred staged for comparison
second Shred The other shred staged for comparison
directionA Direction Direction of this shred to be compared
orientationA Orientation Orientation of this shred to be compared
directionB Direction Direction of the other shred to be compared
orientationB Orientation Orientiation of the other shred to be compared
리턴 MatchData

ForceClusterNodes() 공개 정적인 메소드

This Method clusters two nodes forcibly with no match
public static ForceClusterNodes ( MatchData matchData, Match match = Match.NonInverted ) : Cluster
matchData MatchData MatchData Object
match Match Indicates how the MatchData is Matched
리턴 Cluster

MatchData() 공개 메소드

Creates a MatchData Object for encapsulating all the comparison MatchData
public MatchData ( double chamferSimilarity, int offset, double scan, Side first, Side second ) : System
chamferSimilarity double
offset int
scan double
first Side
second Side
리턴 System

SmartClusterNodes() 공개 정적인 메소드

public static SmartClusterNodes ( MatchData matchData ) : INode
matchData MatchData
리턴 INode

프로퍼티 상세

ChamferScan 공개적으로 프로퍼티

public double[] ChamferScan
리턴 double[]

ChamferSimilarity 공개적으로 프로퍼티

public double ChamferSimilarity
리턴 double

First 공개적으로 프로퍼티

public Side,Algorithmix First
리턴 Side

NORMALIZATION_ENABLED 공개적으로 정적으로 프로퍼티

public static bool NORMALIZATION_ENABLED
리턴 bool

ORIENTATION_PENALTY 공개적으로 정적으로 프로퍼티

public static bool ORIENTATION_PENALTY
리턴 bool

Offset 공개적으로 프로퍼티

public int Offset
리턴 int

Second 공개적으로 프로퍼티

public Side,Algorithmix Second
리턴 Side