Ejemplo n.º 1
0
 public IResourceSource GetModelSource(PlaneModelSourcePlane plane, PlaneModelSourceNormalDirection normalDirection,
                                       float halfWidth, float halfHeight, float scaleU, float scaleV)
 {
     return(new Source(FactoryResourceCache, this)
     {
         HalfWidth = halfWidth,
         HalfHeight = halfHeight,
         ScaleU = scaleU,
         ScaleV = scaleV,
         Plane = plane,
         NormalDirection = normalDirection
     });
 }
Ejemplo n.º 2
0
 public IExplicitModel PlaneModel(PlaneModelSourcePlane plane, PlaneModelSourceNormalDirection normalDirection,
                                  float halfWidth, float halfHeight, float scaleU, float scaleV) =>
 (IExplicitModel)planeModelFactory.GetModelSource(plane, normalDirection, halfWidth, halfHeight, scaleU, scaleV).GetResource();
Ejemplo n.º 3
0
 private IModel3D BuildFloorOrCeiling(Size3 halfSize, PlaneModelSourceNormalDirection direction)
 {
     return(embeddedResources.PlaneModel(PlaneModelSourcePlane.Xz, direction, halfSize.Width, halfSize.Depth, 1, 1));
 }