Beispiel #1
0
 public ProceduralGabledRoof(List <Vector2> foundationPolygon, RoofConfig roofConfig, Color roofColor)
     : base(foundationPolygon, roofConfig, roofColor)
 {
 }
Beispiel #2
0
        protected static MeshDraft ConstructBorder(List <Vector2> roofPolygon2, List <Vector3> roofPolygon3, RoofConfig roofConfig)
        {
            List <Vector3> upperRing = roofPolygon2.ConvertAll(v => v.ToVector3XZ() + Vector3.up * roofConfig.thickness);

            return(new MeshDraft().AddFlatQuadBand(roofPolygon3, upperRing, false));
        }
Beispiel #3
0
 protected ProceduralRoof(List <Vector2> foundationPolygon, RoofConfig roofConfig, Color roofColor)
 {
     this.foundationPolygon = foundationPolygon;
     this.roofConfig        = roofConfig;
     this.roofColor         = roofColor;
 }