1
0
KF2-Dev-Scripts/UnrealEd/Classes/GeomModifier_Lathe.uc
2020-12-13 18:01:13 +03:00

49 lines
1.0 KiB
Ucode

/**
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
*/
/**
* Revolves selected polygons around the pivot point.
*/
class GeomModifier_Lathe
extends GeomModifier_Edit
native;
var(Settings) int TotalSegments;
var(Settings) int Segments;
var(Settings) bool AlignToSide;
/** The axis of rotation to use when creating the brush. This is automatically determined from the current ortho viewport. */
var EAxis Axis;
cpptext
{
/**
* @return TRUE if this modifier will work on the currently selected sub objects.
*/
virtual UBOOL Supports();
/**
* Gives the individual modifiers a chance to do something the first time they are activated.
*/
virtual void Initialize();
protected:
/**
* Implements the modifier application.
*/
virtual UBOOL OnApply();
private:
void Apply( INT InTotalSegments, INT InSegments, EAxis InAxis );
}
defaultproperties
{
Description="Lathe"
Axis=AXIS_Y
TotalSegments=16
Segments=4
AlignToSide=FALSE
}