Represents a point light source with a stencil in front of it.
More...
|
| MaskedLightSource (double intensity, Point3D position, NormalizedVector3D direction, double distance, GraphicsPath mask, double maskOrientation, double triangulationResolution) |
| Creates a new MaskedLightSource by triangulating the specified GraphicsPath. More...
|
|
| MaskedLightSource (double intensity, Point3D position, NormalizedVector3D direction, double distance, IEnumerable< GraphicsPath > triangulatedMask, double maskOrientation) |
| Creates a new MaskedLightSource using the specified triangulatedMask . More...
|
|
LightIntensity | GetLightAt (Point3D point) |
| Computes the light intensity at the specified point, without taking into account any obstructions. - Parameters
-
point | The Point3DElement at which the light intensity should be computed. |
- Returns
More...
|
|
double | GetObstruction (Point3D point, IEnumerable< Triangle3DElement > shadowingTriangles) |
| Determines the amount of obstruction of the light that results at point due to the specified shadowingTriangles . - Parameters
-
point | The Point3D at which the obstruction should be computed. |
shadowingTriangles | A collection of Triangle3DElement casting shadows. |
- Returns
- 1 if the light is completely obstructed, 0 if the light is completely visible, a value between these if the light is partially obstructed.
More...
|
|
LightIntensity | GetLightAt (Point3D point) |
| Computes the light intensity at the specified point, without taking into account any obstructions. More...
|
|
double | GetObstruction (Point3D point, IEnumerable< Triangle3DElement > shadowingTriangles) |
| Determines the amount of obstruction of the light that results at point due to the specified shadowingTriangles . More...
|
|
Represents a point light source with a stencil in front of it.
Definition at line 385 of file Lights.cs.
◆ MaskedLightSource() [1/2]
VectSharp.ThreeD.MaskedLightSource.MaskedLightSource |
( |
double |
intensity, |
|
|
Point3D |
position, |
|
|
NormalizedVector3D |
direction, |
|
|
double |
distance, |
|
|
GraphicsPath |
mask, |
|
|
double |
maskOrientation, |
|
|
double |
triangulationResolution |
|
) |
| |
Creates a new MaskedLightSource by triangulating the specified GraphicsPath.
- Parameters
-
intensity | The base intensity of the light. |
position | The position of the light source. |
direction | The direction of the light. |
distance | The distance between the light source and the mask plane. |
mask | A GraphicsPath representing the transparent part of the mask. |
maskOrientation | An angle in radians determining the orientation of the 2D mask in the mask plane. |
triangulationResolution | The resolution to use to triangulate the mask . |
Definition at line 437 of file Lights.cs.
◆ MaskedLightSource() [2/2]
VectSharp.ThreeD.MaskedLightSource.MaskedLightSource |
( |
double |
intensity, |
|
|
Point3D |
position, |
|
|
NormalizedVector3D |
direction, |
|
|
double |
distance, |
|
|
IEnumerable< GraphicsPath > |
triangulatedMask, |
|
|
double |
maskOrientation |
|
) |
| |
Creates a new MaskedLightSource using the specified triangulatedMask .
- Parameters
-
intensity | The base intensity of the light. |
position | The position of the light source. |
direction | The direction of the light. |
distance | The distance between the light source and the mask plane. |
triangulatedMask | A collection of GraphicsPaths representing the transparent part of the mask. Each GraphicsPath should represent a single triangle. |
maskOrientation | An angle in radians determining the orientation of the 2D mask in the mask plane. |
Definition at line 451 of file Lights.cs.
◆ GetLightAt()
LightIntensity VectSharp.ThreeD.MaskedLightSource.GetLightAt |
( |
Point3D |
point | ) |
|
Computes the light intensity at the specified point, without taking into account any obstructions.
- Parameters
-
point | The Point3DElement at which the light intensity should be computed. |
- Returns
Implements VectSharp.ThreeD.ILightSource.
Definition at line 483 of file Lights.cs.
◆ GetObstruction()
double VectSharp.ThreeD.MaskedLightSource.GetObstruction |
( |
Point3D |
point, |
|
|
IEnumerable< Triangle3DElement > |
shadowingTriangles |
|
) |
| |
Determines the amount of obstruction of the light that results at point due to the specified shadowingTriangles .
- Parameters
-
point | The Point3D at which the obstruction should be computed. |
shadowingTriangles | A collection of Triangle3DElement casting shadows. |
- Returns
- 1 if the light is completely obstructed, 0 if the light is completely visible, a value between these if the light is partially obstructed.
Implements VectSharp.ThreeD.ILightSource.
Definition at line 556 of file Lights.cs.
◆ AngleAttenuationExponent
double VectSharp.ThreeD.MaskedLightSource.AngleAttenuationExponent = 1 |
|
getset |
An exponent determining how fast the light attenuates away from the light's axis. Set to 0 to disable angular attenuation.
Definition at line 425 of file Lights.cs.
◆ CastsShadow
bool VectSharp.ThreeD.MaskedLightSource.CastsShadow = true |
|
getset |
◆ Direction
NormalizedVector3D VectSharp.ThreeD.MaskedLightSource.Direction |
|
get |
The direction of the light.
Definition at line 403 of file Lights.cs.
◆ Distance
double VectSharp.ThreeD.MaskedLightSource.Distance |
|
get |
The distance between the light source and the mask plane.
Definition at line 408 of file Lights.cs.
◆ DistanceAttenuationExponent
double VectSharp.ThreeD.MaskedLightSource.DistanceAttenuationExponent = 2 |
|
getset |
An exponent determining how fast the light attenuates with increasing distance. Set to 0 to disable distance attenuation.
Definition at line 420 of file Lights.cs.
◆ Intensity
double VectSharp.ThreeD.MaskedLightSource.Intensity |
|
getset |
The base intensity of the light.
Definition at line 415 of file Lights.cs.
◆ Origin
Point3D VectSharp.ThreeD.MaskedLightSource.Origin |
|
get |
◆ Position
Point3D VectSharp.ThreeD.MaskedLightSource.Position |
|
get |
The position of the light source.
Definition at line 393 of file Lights.cs.
The documentation for this class was generated from the following file: