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); }
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; }
public void AddPrimitive(Primitive prim) { _primitives.Add(prim); }
public GridVoxel(Primitive op) { _primitives = new List<Primitive>(); _primitives.Add(op); _allCanIntersect = false; }