Example #1
0
        public Scene(Primitive aggregate, IEnumerable<Light> lights, VolumeRegion volumeRegion)
        {
            _aggregate = aggregate;
            _lights = lights;
            _volumeRegion = volumeRegion;

            _worldBound = aggregate.WorldBound;
            if (volumeRegion != null)
                _worldBound = BBox.Union(_worldBound, volumeRegion.WorldBound);
        }
Example #2
0
 public Intersection(DifferentialGeometry dg, Primitive primitive,
     Transform objectToWorld, Transform worldToObject,
     float rayEpsilon)
 {
     _dg = dg;
     _primitive = primitive;
     WorldToObject = worldToObject;
     ObjectToWorld = objectToWorld;
     _rayEpsilon = rayEpsilon;
 }
 public TransformedPrimitive(Primitive primitive, AnimatedTransform worldToPrimitive)
 {
     _primitive = primitive;
     _worldToPrimitive = worldToPrimitive;
 }
Example #4
0
 public void AddPrimitive(Primitive prim)
 {
     _primitives.Add(prim);
 }
Example #5
0
 public GridVoxel(Primitive op)
 {
     _primitives = new List<Primitive>();
     _primitives.Add(op);
     _allCanIntersect = false;
 }