Example #1
0
 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();
 }
Example #2
0
            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);

            }
Example #3
0
 public void ComputeTangentFrame(TangentOptions options)
 {
     throw new NotImplementedException();
 }
Example #4
0
            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);
                }
            }