Ejemplo n.º 1
0
    private void AddFace(GeoFace geoFace)
    {
        GameObject planeObject = new GameObject(geoFace.ToString());

        planeObject.transform.SetParent(faceWrapper.transform);

        FaceBehaviour faceBehaviour = planeObject.AddComponent <FaceBehaviour>();

        faceBehaviour.Init(geoFace);

        faceBehaviour.SetData(geometry.Face(geoFace));

        faceMap.Add(geoFace, faceBehaviour);
        elementMap.Add(geoFace, faceBehaviour);
    }
Ejemplo n.º 2
0
    private void UpdateFace(GeoFace geoFace)
    {
        FaceBehaviour faceBehaviour = faceMap[geoFace];

        faceBehaviour.SetData(geometry.Face(geoFace));
    }