Пример #1
0
        public void TraceFrustumInScene(Matrix viewProjection)
        {
            Frustum frustum = new Frustum(viewProjection);

            ChemEntity[] entities = sceneGraph.GetAllInsideFrustum(frustum);
            if (entities != null)
            {
                foreach (ChemEntity entity in entities)
                {
                    AtomSelectionEntity selEntity = new AtomSelectionEntity((AtomEntity)entity);
                    selEntity.Init(device);
                    postSceneViewEntities.Add(selEntity);
                }
            }
        }