Пример #1
0
 public Stroke(Mesh _mesh)
 {
     options = new StrokeOptions();
     //initialize all lists
     mInputPoints      = new List <Vector3>();
     mInputRotations   = new List <Quaternion>();
     mSampledPoints    = new List <Vector3>();
     mSampledRotations = new List <Quaternion>();
     mOffsets          = new List <Vector3>();
     mThickness        = new List <float>();
     mPressure         = new List <float>();
     mesh = _mesh;
 }
Пример #2
0
 // Vector3 deltaDraw;
 // Use this for initialization
 void Start()
 {
     activeMeshFilter           = activeStrokes.GetComponent <MeshFilter>();
     cacheMeshFilter            = cacheStrokes.GetComponent <MeshFilter>();
     activeMeshFilter.mesh      = new Mesh();
     cacheMeshFilter.mesh       = new Mesh();
     activeMeshFilter.mesh.name = "activeMesh";
     cacheMeshFilter.mesh.name  = "cacheMesh";
     if (strokeOptions == null)
     {
         strokeOptions = new StrokeOptions();
     }
     // strokeOptions = new StrokeOptions();
     //send the mesh to the strokes
     // deltaDraw = new Vector3(Random.Range(-1f, 1f), Random.Range(-1f, 1f), 0);
     // List<Vector3> points = GetPoints();
     // stroke.MeshStroke(points);
 }
Пример #3
0
        void ToggleStrokeMode()
        {
            m_StrokeOptions = m_StrokeOptions.Next();

            //OnInspectorUpdate();
        }