Example #1
0
 public void Dispose()
 {
     m_identity = null;
     m_model    = null;
     m_frontMaterialIdentity = null;
     m_backMaterialIdentity  = null;
     if (m_faceMesh != null)
     {
         m_faceMesh.Dispose();
         m_faceMesh = null;
     }
 }
Example #2
0
        public void Load(SUFaceRef p_suFaceRef)
        {
            SUDrawingElementRef drawingRef = SKPCExport.SUFaceToDrawingElement(p_suFaceRef);
            SUEntityRef         entityRef  = SKPCExport.SUDrawingElementToEntity(drawingRef);

            m_identity = SkpEntityCache.GetIdentity(entityRef);

            SUMaterialRef suFrontMaterialRef = default(SUMaterialRef);

            SKPCExport.SUFaceGetFrontMaterial(p_suFaceRef, ref suFrontMaterialRef);
            m_frontMaterialIdentity = SkpEntityCache.GetIdentity(SKPCExport.SUMaterialToEntity(suFrontMaterialRef));

            SUMaterialRef suBackMaterialRef = default(SUMaterialRef);

            SKPCExport.SUFaceGetBackMaterial(p_suFaceRef, ref suBackMaterialRef);
            m_backMaterialIdentity = SkpEntityCache.GetIdentity(SKPCExport.SUMaterialToEntity(suBackMaterialRef));

            m_faceMesh = new SkpFaceMesh(this);
            m_faceMesh.Load(p_suFaceRef);
        }