Definition R

Roof Segmentation

Process of dividing a roof into distinct planar surfaces for individual solar panel layout and shading analysis.

Updated Mar 2026 5 min read
Keyur Rakholiya

Written by

Keyur Rakholiya

CEO & Co-Founder · SurgePV

Rainer Neumann

Edited by

Rainer Neumann

Content Head · SurgePV

Key Takeaways

  • Roof segmentation breaks a roof into individual planar surfaces (segments) for precise solar design
  • Each segment has its own pitch, azimuth, area, and shading profile
  • AI-powered segmentation automates what was once a manual, error-prone process
  • Accurate segmentation is the foundation for panel layout, production modeling, and shading analysis
  • Complex roofs with hips, valleys, dormers, and skylights benefit most from automated segmentation
  • Poor segmentation leads to panel placements that violate setback rules or overlap obstructions

What Is Roof Segmentation?

Roof segmentation is the process of dividing a rooftop into distinct, flat (planar) surfaces — called segments or facets — so that each one can be analyzed independently for solar panel placement. A simple gable roof has two segments. A complex hip roof with dormers, chimneys, and skylights might have 10 or more.

Each segment has its own characteristics: pitch angle, compass orientation (azimuth), usable area after setbacks, and shading conditions. Solar design software uses these per-segment properties to determine where panels can be placed, how they’ll perform, and what hardware is needed.

Without proper segmentation, solar designers are forced to treat the entire roof as a single surface — leading to inaccurate production estimates, panels placed in unusable areas, and layouts that fail permitting review.

How Roof Segmentation Works

Modern segmentation combines multiple data sources and algorithmic techniques to produce accurate roof models.

1

Imagery or LiDAR Ingestion

The process starts with high-resolution aerial or satellite imagery, often supplemented by LiDAR elevation data. Higher resolution inputs produce more accurate segmentation, especially on complex roofs.

2

Edge and Ridge Detection

Algorithms identify roof edges, ridgelines, hip lines, and valleys — the boundaries between segments. AI models trained on millions of rooftops can detect these features even when partially occluded by shadows or vegetation.

3

Plane Fitting

For each detected region, the software fits a mathematical plane to the elevation data points. This defines the pitch and azimuth of the segment. Points that don’t fit the plane (chimneys, vents, dormers) are classified as obstructions.

4

Obstruction Mapping

Chimneys, skylights, vents, HVAC units, and other roof-mounted objects are identified and mapped as keep-out zones within each segment. These areas are excluded from panel placement.

5

Setback Application

Fire code and building code setbacks are applied to each segment edge — typically 3 feet from ridges and edges, varying by jurisdiction. The remaining area after setbacks is the usable panel area.

6

Segment Classification

Each segment is classified by suitability: favorable orientation and pitch, partially suitable, or unsuitable (e.g., north-facing at high latitude). This classification guides the designer toward the best placement.

Segmentation Approaches

Modern Standard

AI-Powered Segmentation

Machine learning models trained on labeled roof datasets detect segments automatically from imagery. Accuracy has improved to match or exceed manual tracing for standard roof types. Most solar software platforms now use this approach.

Precision Option

LiDAR + Algorithm

Combines LiDAR point clouds with RANSAC or similar plane-fitting algorithms. Delivers the most geometrically precise segmentation. Preferred for commercial projects where millimeter-level accuracy matters.

Manual Fallback

Hand-Traced Segments

The designer manually draws roof segments over satellite imagery. Still necessary for unusual architectures, renovated roofs, or areas without quality data. Time-consuming but gives the designer full control.

Emerging

Drone Photogrammetry

3D models from drone flights provide centimeter-accurate geometry. The model is automatically segmented into planes. Ideal for large commercial or industrial rooftops with complex structures.

Designer’s Note

AI segmentation works well for 90% of roofs, but always review the results visually. Common failure modes include merging two segments that meet at a shallow angle, missing small dormers, and misclassifying tree shadows as roof edges.

Key Metrics

MetricDescriptionTypical Values
Segment CountNumber of distinct roof planes detected2–4 (simple), 8–15 (complex)
Usable AreaPanel-eligible area after setbacks and obstructions60–80% of total roof area
Pitch per SegmentSlope angle of each planeVaries by segment
Azimuth per SegmentCompass direction each plane faces0°–360°
Shading FactorAnnual solar access percentage per segment70–100% for viable segments
Obstruction CoveragePercentage of segment area blocked by objects0–20% typically
Usable Area Formula
Usable Area = Segment Area − Setback Area − Obstruction Area

Impact on Solar Design

Segmentation quality directly affects every downstream design decision:

Design DecisionGood SegmentationPoor Segmentation
Panel CountAccurate — panels fit within real boundariesOverestimated — panels overlap edges or obstructions
Production EstimatePer-segment pitch and azimuth feed accurate modelsAveraged values introduce 5–15% error
Shading AnalysisEach segment analyzed with correct geometryShadow analysis runs on wrong surface angles
Permit DrawingsSetbacks correctly applied per segmentSetback violations flagged during review
Racking SpecsCorrect hardware for each pitch zoneWrong racking ordered for misidentified pitches

Practical Guidance

  • Review every auto-detected segment. Spend 30 seconds verifying that segment boundaries align with visible roof features. Fixing a bad segment takes seconds; fixing a bad design takes hours.
  • Check azimuth values. A misaligned segment boundary can assign the wrong compass direction to a roof plane, shifting production estimates significantly. Verify azimuth against known building orientation.
  • Map all obstructions. Vents, pipes, and satellite dishes are easy to miss in overhead imagery. Use street-level views or customer photos to identify roof-mounted objects that aren’t visible from above.
  • Apply jurisdiction-specific setbacks. Fire setbacks vary by AHJ. A 3-foot ridge setback in one county might be 18 inches in the next. Get this right during segmentation to avoid permit rejections.
  • Verify segment boundaries on site. Confirm that ridgelines and valleys match the design drawing. On older roofs, actual geometry may differ from the satellite-based model.
  • Check for unlisted obstructions. New HVAC units, antennas, or plumbing vents installed after the imagery was captured won’t appear in the segmentation. Walk the roof before starting layout.
  • Confirm usable area measurements. Measure key dimensions of each segment to verify that the planned panel count physically fits. A 5% area overestimate can mean 1–2 fewer panels per segment.
  • Report segment corrections. If you find discrepancies, feed them back to the design team. This improves future proposals and builds a better dataset for AI training.
  • Show the segmentation map. Including a color-coded roof segment diagram in the proposal demonstrates professionalism and helps the homeowner understand why panels are placed where they are.
  • Explain segment selection. If you’re only using two of four roof segments, explain why — the other two may face north, be too shaded, or be too small for meaningful production.
  • Use per-segment production data. Showing that the south-facing segment produces 1,200 kWh/kW while the east-facing segment produces 950 kWh/kW justifies your layout recommendations.
  • Address expansion potential. If unused segments could host future panels, mention this. It shows foresight and may lead to a larger initial sale or a future upsell.

Automatic Roof Segmentation in SurgePV

SurgePV’s AI detects roof segments, maps obstructions, and applies setbacks automatically — giving you a buildable layout in minutes.

Start Free Trial

No credit card required

Real-World Examples

Simple Gable Roof

A gable-roof home in Arizona has two roof segments: south-facing at 22° pitch and north-facing at 22° pitch. The segmentation is straightforward — two rectangles split along the ridge. The designer places all 24 panels on the south-facing segment, which has 380 sq ft of usable area after setbacks. The north-facing segment is excluded entirely due to poor solar access at this latitude. Production estimate: 11,400 kWh/year.

Complex Hip Roof with Dormers

A colonial home in Connecticut has a hip roof with four main segments, two dormers, and a chimney. AI-powered segmentation identifies eight distinct planes. The south and west-facing main segments (combined 520 sq ft usable) host 28 panels. The dormer faces are too small for panels but create shading that the shadow analysis software quantifies at 4% annual loss on adjacent panels. Without proper segmentation, the designer would have missed the dormer shading entirely.

Large Commercial Flat Roof

A 200,000 sq ft distribution center has what appears to be a single flat surface. However, segmentation reveals three distinct zones: a truly flat section (0°), a slightly sloped drainage section (2°), and a raised mechanical area. The flat section hosts 1,200 panels on tilt-up racking. The sloped drainage section accommodates 400 panels with adjusted row spacing. The mechanical area is excluded. Total system: 640 kW.

Pro Tip

When working with AI-segmented roofs, zoom in to check that segment boundaries follow actual roof features and not image artifacts. Shadows from nearby trees can fool algorithms into detecting false edges, creating phantom segments that don’t exist on the actual roof.

Frequently Asked Questions

What is roof segmentation in solar design?

Roof segmentation is the process of dividing a rooftop into individual flat surfaces, called segments or facets. Each segment has its own pitch, orientation, and usable area. Solar designers analyze each segment separately to determine the best panel placement, accurate production estimates, and correct hardware specifications.

Why does roof segmentation matter for solar production estimates?

Each roof segment faces a different direction and sits at a different angle to the sun. A south-facing segment at 25° might produce 20–30% more energy annually than an east-facing segment at the same pitch. Without segmentation, production models use averaged values that can be off by 10–15%, leading to inaccurate savings projections for the customer.

Can AI automatically segment a roof for solar design?

Yes. Modern solar design platforms use AI models trained on millions of roof images to automatically detect and segment roof planes. These tools can identify ridgelines, hips, valleys, dormers, and obstructions in seconds. While AI handles most standard roofs accurately, designers should review the output for complex or unusual architectures.

How many segments does a typical residential roof have?

A simple gable roof has 2 segments. A standard hip roof has 4. Homes with dormers, multiple roof levels, or additions can have 8–15 segments. Not all segments are suitable for panels — north-facing segments at high latitudes, very small surfaces, and heavily shaded areas are typically excluded from the solar layout.

About the Contributors

Author
Keyur Rakholiya
Keyur Rakholiya

CEO & Co-Founder · SurgePV

Keyur Rakholiya is CEO & Co-Founder of SurgePV and Founder of Heaven Green Energy Limited, where he has delivered over 1 GW of solar projects across commercial, utility, and rooftop sectors in India. With 10+ years in the solar industry, he has managed 800+ project deliveries, evaluated 20+ solar design platforms firsthand, and led engineering teams of 50+ people.

Editor
Rainer Neumann
Rainer Neumann

Content Head · SurgePV

Rainer Neumann is Content Head at SurgePV and a solar PV engineer with 10+ years of experience designing commercial and utility-scale systems across Europe and MENA. He has delivered 500+ installations, tested 15+ solar design software platforms firsthand, and specialises in shading analysis, string sizing, and international electrical code compliance.

Explore More Solar Terms

Browse 300+ terms in our complete solar glossary — or see how SurgePV puts these concepts into practice.

No credit card required · Full access · Cancel anytime