Example #1
0
        /// <summary>
        /// private constuctor of a singleton
        /// </summary>
        private MeshParameterization()
        {
            this.SelectedMethod   = Method.Barycentric;
            this.AngleToAreaRatio = 1f;
            this.P1Index          = 153;
            this.P2Index          = 19;
            this.P1UV             = new Vector2(0.5f, 0);
            this.P2UV             = new Vector2(0.5f, 1);

#if MATLAB
            /// initalizes a MALAB session connected to this C# program
            /// if you want to see it in your MATLAB window,
            /// (1) first, start MABLAB *before* starting this program
            /// (2) call in MATLAB: enableservice('AutomationServer',true); (two times?)
            /// (3) start this program, then you can push matrices to MATLAB, see examples below
            Matlab.InitMATLAB(true);
#endif
        }