public static PrimitiveType GetPrimitiveType(this ParadoxTessellationMethod method) { if ((method & ParadoxTessellationMethod.PointNormal) == 0) { return(PrimitiveType.TriangleList); } var controlsCount = method.PerformsAdjacentEdgeAverage() ? 12 : 3; return(PrimitiveType.PatchList.ControlPointCount(controlsCount)); }
public static bool PerformsAdjacentEdgeAverage(this ParadoxTessellationMethod method) { return((method & ParadoxTessellationMethod.AdjacentEdgeAverage) != 0); }