XGRIDSDocs
  • 简体中文
  • English
  • 繁體中文
  • 日本語
  • Deutsch
  • Español
  • Italiano
  • Français
  • Русский
  • 简体中文
  • English
  • 繁體中文
  • 日本語
  • Deutsch
  • Español
  • Italiano
  • Français
  • Русский
  • PortalCam

    • Product Overview
    • Basic Operation
    • Using the LCC Scan App
    • Maintenance and Care
    • FAQ
  • Lixel K Series

    • Lixel K1

      • Product Overview
      • Basic Operation
      • Device Activation and Connection
      • Scanning Workflow
      • Acquire Point Cloud Data with Absolute Coordinate
      • Map Fusion
      • Route Planning Suggestions for Typical Scenes
      • Precautions
      • FAQ
    • Lixel K2

      • Product Overview
      • Basic Operation
      • Device Activation and Connection
      • Scanning Workflow
      • Acquire Point Cloud Data with Absolute Coordinate
      • Map Fusion
      • Route Planning Suggestions for Typical Scenes
      • Precautions
      • FAQ
  • Lixel L Series

    • Lixel L2 Pro

      • Product Overview
      • Basic Operation
      • Device Activation and Connection
      • Scanning Workflow
      • Acquire Point Cloud Data with Absolute Coordinate
      • Measure Point
      • Appendix
      • FAQ
  • Lixel Studio

    • Version and Copyright
    • Installation and Activation
    • Software Interface
    • File Operations
    • Project Processing
    • Tools
    • 2D Drawing
    • Applications
    • Settings
    • Device Connection
  • Lixel CyberColor

    • LCC Studio

      • Getting Started
      • Version and Updates
      • Download and Installation
      • Interface Overview and Navigation
      • Before Reconstruction
      • Model Reconstruction
      • Single Model Reconstruction
      • Map Fusion
      • Aerial-Ground Fusion
      • Aerial Reconstruction
      • My Models
      • Other Features
      • Settings and Account
      • Converter
      • Video Reconstruction
      • FAQ
    • LCC Scene Editor

      • Version & Updates
      • Account & Login
      • Product Overview & Home
      • Editor Interface
      • Scene Navigation Modes
      • File
      • Settings
      • Edit Operations
      • Window
      • Global Toolbar
      • Assets & Properties
      • Left Toolbar
      • Viewpoints
      • Portal
      • Skybox
      • Annotations
      • Measurement
      • Flythrough
      • Scene Report
      • 3D Layout
      • Mini-Map
      • Preview Mode (Viewer)
      • Help
      • FAQ
      • Spawn Point
    • LCC Model Editor

      • Version and Updates
      • User Guide
      • Overview and Interface
      • File Operations
      • Selectors
      • Editing Models
      • Measurement
      • Color Grading
      • Asset Management
      • Settings and Help
      • FAQ
    • Capture Guide

      • Overview
      • Capture Devices Overview
      • General Capture Principles
      • Indoor Scene Capture
      • Outdoor Scene Capture
      • Large-Scale Capture (Map Fusion)
      • Aerial-Ground Map Fusion Capture
      • Object Capture
      • People Capture
      • Video Reconstruction Capture
      • HD Enhancement
      • Control Points (Lixel P1)
      • FAQ and Troubleshooting
    • Version History
  • Plugin & SDK

    • Unreal

      • Introduction
      • Quick Start - Windows
      • Quick Start - Linux
      • Quick Start - Quest3
      • Editions and Licensing
      • Rendering
      • Visual Settings
      • Normals and Lighting
      • Scene Editing
      • Performance Parameters
      • Performance Guide
      • Third-party and Engine Plugin Integration
      • Proxy Mesh
      • Loading Animation
      • Collision
      • Navigation System Support
      • Single Layer Water Support
      • Localization
      • FAQ
      • Troubleshooting
      • Logging and Diagnostics
      • Contact Us
      • API Reference

        • ALCCActorBase
        • ULCCComponentBase
        • ULCCComponent
        • ULCC2Component
        • SOG / SPZ / PLY Actors
        • ALCC2ProxyMesh
        • ALCCClippingVolume
        • ALCCSectionPlane
        • ULCCUtilLibrary
        • Enums
        • Structs
      • Changelog

        • v3.3.1
        • v3.0.0
        • v2.2.1
        • v1.0.0
        • v0.9.0
        • v0.8.0
        • v0.7.1
        • v0.6.1
        • v0.5.2
        • v0.4.1
        • v0.4.0
        • v0.3.0
        • v0.0.5
        • v0.0.4
        • v0.0.3
        • v0.0.2
        • v0.0.1

ALCCSectionPlane: 3DGS Section Plane

Section plane Actor that cuts an LCC scene with a plane and keeps one side of it.

ModuleLCC4UnrealRuntime
HeaderTools/LCCSectionPlane.h
Parent classAVolume
Panel display nameLCC Section Plane
#include "Tools/LCCSectionPlane.h"

For the usage steps, a demonstration, and the property panel description, see Scene Editing - Section Planes. This page only lists the interfaces.

The editor shows an arrow component indicating the plane orientation, and the side the arrow points to is Upside.

Properties

PropertyTypeDescription
bEnabledboolWhether it takes part in sectioning
ModeESectionTypeUpside cuts away what is above the plane, Downside cuts away what is below

Up and down are relative to the orientation of the plane itself, not to world coordinates. Rotating the section plane gives a section in any direction. For the meaning of the values see ESectionType.

Neither property has a Setter, and an assignment at runtime requires a call to Refresh to take effect. The same applies to a transform change at runtime.

Methods

SetUpdateComponent

UFUNCTION(BlueprintCallable, Category = "XGrids")
void SetUpdateComponent(ULCCComponentBase* Component);

Binds the LCC Component to update.

Refresh() needs this binding to take effect, since internally it marks the bound Component as needing its render state rebuilt. Without a binding, no render update is triggered.

Refresh

UFUNCTION(BlueprintCallable, Category = "XGrids")
void Refresh();

Triggers one update of the sectioning result manually; internally it marks the bound LCC Component as needing its render state rebuilt.

A call is required after changing a section plane at runtime for the change to take effect, including:

  • Property changes: bEnabled, Mode. These properties have no Setter, and a direct assignment does not notify the rendering side.
  • Transform changes: SetActorLocation, SetActorRotation.

Automatic updates only happen in the editor: property changes in the Details panel go through PostEditChangeProperty, and dragging the gizmo goes through functions such as EditorApplyTranslation. Those paths are all under WITH_EDITOR and do not exist at runtime.

It requires SetUpdateComponent to have been called, or the association to have been established through AddSectionPlane. No render update is triggered while no Component is bound.

When changing several section planes at once, call Refresh() on each one after its properties are changed.

Runtime Creation

#include "Tools/LCCSectionPlane.h"
#include "LCCComponentBase.h"

ALCCSectionPlane* AMyTool::CreateSectionPlane(
    ULCCComponentBase* Component, const FVector& Location, const FRotator& Rotation)
{
    ALCCSectionPlane* Plane = GetWorld()->SpawnActor<ALCCSectionPlane>(
        ALCCSectionPlane::StaticClass(), Location, Rotation);
    if (!Plane)
    {
        return nullptr;
    }

    Plane->Mode = ESectionType::Upside;   // cut away what is above the plane
    Plane->bEnabled = true;

    Plane->SetUpdateComponent(Component);
    Component->AddSectionPlane(Plane);

    return Plane;
}

A few common configurations:

EffectLocation and rotationMode
Top-down view of a building interiorA given height, FRotator::ZeroRotatorUpside
Vertical section to view a facadeFRotator(0, 0, 90) to make the plane verticalUpside
Keep only the middle layerOne plane above and one belowDownside for the lower bound, Upside for the upper bound

Moving the section plane produces a layer-by-layer reveal animation. Call Refresh() after every move at runtime:

FVector Loc = SectionPlane->GetActorLocation();
Loc.Z = FMath::FInterpTo(Loc.Z, TargetHeight, DeltaTime, 1.0f);
SectionPlane->SetActorLocation(Loc);
SectionPlane->Refresh();        // runtime transform changes do not update automatically

Property changes need a refresh as well:

SectionPlane->bEnabled = false;
SectionPlane->Refresh();

For the Blueprint nodes see Scene Editing - Blueprint Methods.

Notes

  • Sectioning only affects rendering, not collision. A sectioned-away part can still be hit by a ray and still blocks a character.
  • Upside and Downside are relative to the orientation of the plane itself. After a rotation, confirm which side is "up" again; looking at the arrow in the editor is the most direct way.
  • The Z scale is set to 0.01 at construction (a thin slice), and changing the scale in the editor is forced back to that value. A runtime scale change is not subject to this constraint, but normally needs no change.
  • The number of section planes in effect at once is limited, to 50 without a license; the extras do not take part in rendering and a warning is logged. Section planes and clipping volumes share this quota. For licensing see Editions and Licensing.
  • Destroying a section plane only triggers one render update and does not remove the element from the SectionPlanes array of the Component, leaving a stale pointer in the array (skipped automatically during rendering). To keep the array clean, call RemoveSectionPlane before destroying.

See Also

  • Scene Editing: full usage description
  • ALCCClippingVolume: clipping with a bounded volume
  • ULCCComponentBase: AddSectionPlane and RemoveSectionPlane
Prev
ALCCClippingVolume
Next
ULCCUtilLibrary