public static Mesh ComputeTangentFrame(Mesh mesh, int textureInSemantic, int textureInIndex, int upartialOutSemantic, int upartialOutIndex, int vpartialOutSemantic, int vpartialOutIndex, int normalOutSemantic, int normalOutIndex, TangentOptions options, GraphicsStream adjacency, float partialEdgeTreshold, float singularPointThreshold, float normalEdgeThreshold, out GraphicsStream vertexRemapping) { throw new NotImplementedException(); }
public TangentArguments(OpsParsedStatement statement) { OpsParsedArgument argTexIdx= statement.FindArgument( "TexIdx"); if(argTexIdx != null) TexIdx = int.Parse(argTexIdx.Value); OpsParsedArgument argOrtho= statement.FindArgument( "Ortho"); if(argOrtho != null) { if( 0 == String.Compare ( argOrtho.Value, "None", true ) ) Options |= TangentOptions.DontOrthogonalize; else if( 0 == String.Compare ( argOrtho.Value, "U", true ) ) Options |= TangentOptions.OrthogonalizeFromU; else if( 0 == String.Compare ( argOrtho.Value, "V", true ) ) Options |= TangentOptions.OrthogonalizeFromV; } OpsParsedArgument argNormalizePartials= statement.FindArgument( "NormalizePartials"); if(argNormalizePartials != null) { if ( 0 == int.Parse(argNormalizePartials.Value) ) Options |= TangentOptions.DontNormalizePartials; } OpsParsedArgument argWeight= statement.FindArgument( "Weight"); if(argWeight != null) { if( 0 == String.Compare ( argWeight.Value, "Area", true ) ) Options |= TangentOptions.WeightByArea; else if( 0 == String.Compare ( argWeight.Value, "Equal", true ) ) Options |= TangentOptions.WeightEqual; } OpsParsedArgument argWarp= statement.FindArgument( "Wrap"); if(argWarp != null) { if( 0 == String.Compare ( argWarp.Value, "U", true ) ) Options |= TangentOptions.WrapU; else if( 0 == String.Compare ( argWarp.Value, "V", true ) ) Options |= TangentOptions.WrapV; else if( 0 == String.Compare ( argWarp.Value, "UV", true ) ) Options |= TangentOptions.WrapUV; } OpsParsedArgument argThreshPE= statement.FindArgument( "ThreshPE"); if(argThreshPE != null) ThreshPE = float.Parse(argThreshPE.Value); OpsParsedArgument argThreshSP= statement.FindArgument( "ThreshSP"); if(argThreshSP != null) ThreshSP = float.Parse(argThreshSP.Value); OpsParsedArgument argThreshNE= statement.FindArgument( "ThreshNE"); if(argThreshNE != null) ThreshNE = float.Parse(argThreshNE.Value); }
public void ComputeTangentFrame(TangentOptions options) { throw new NotImplementedException(); }
public TangentArguments(OpsParsedStatement statement) { OpsParsedArgument argTexIdx = statement.FindArgument("TexIdx"); if (argTexIdx != null) { TexIdx = int.Parse(argTexIdx.Value); } OpsParsedArgument argOrtho = statement.FindArgument("Ortho"); if (argOrtho != null) { if (0 == String.Compare(argOrtho.Value, "None", true)) { Options |= TangentOptions.DontOrthogonalize; } else if (0 == String.Compare(argOrtho.Value, "U", true)) { Options |= TangentOptions.OrthogonalizeFromU; } else if (0 == String.Compare(argOrtho.Value, "V", true)) { Options |= TangentOptions.OrthogonalizeFromV; } } OpsParsedArgument argNormalizePartials = statement.FindArgument("NormalizePartials"); if (argNormalizePartials != null) { if (0 == int.Parse(argNormalizePartials.Value)) { Options |= TangentOptions.DontNormalizePartials; } } OpsParsedArgument argWeight = statement.FindArgument("Weight"); if (argWeight != null) { if (0 == String.Compare(argWeight.Value, "Area", true)) { Options |= TangentOptions.WeightByArea; } else if (0 == String.Compare(argWeight.Value, "Equal", true)) { Options |= TangentOptions.WeightEqual; } } OpsParsedArgument argWarp = statement.FindArgument("Wrap"); if (argWarp != null) { if (0 == String.Compare(argWarp.Value, "U", true)) { Options |= TangentOptions.WrapU; } else if (0 == String.Compare(argWarp.Value, "V", true)) { Options |= TangentOptions.WrapV; } else if (0 == String.Compare(argWarp.Value, "UV", true)) { Options |= TangentOptions.WrapUV; } } OpsParsedArgument argThreshPE = statement.FindArgument("ThreshPE"); if (argThreshPE != null) { ThreshPE = float.Parse(argThreshPE.Value); } OpsParsedArgument argThreshSP = statement.FindArgument("ThreshSP"); if (argThreshSP != null) { ThreshSP = float.Parse(argThreshSP.Value); } OpsParsedArgument argThreshNE = statement.FindArgument("ThreshNE"); if (argThreshNE != null) { ThreshNE = float.Parse(argThreshNE.Value); } }