示例#1
0
 public override void Configure()
 {
     if (m_visible)
     {
         if (m_mustCalcNormals && m_autoNormals)
         {
             Computation.CalculateNormals(m_vertices);
         }
     }
     base.Configure();
 }
 public override void Configure()
 {
     if (m_shapeIndicesIndex == null)   // shape was invalidated
     {
         m_shapeIndicesIndex = Computation.CreateShapeIndicesIndex(m_shapeIndices);
         if (m_autoNormals)
         {
             Computation.CalculateNormals(m_vertices, m_shapeIndices, m_shapeIndicesIndex);
         }
     }
     base.Configure();
 }