Table of Contents

Class BodyProfile

Namespace
S1MAPI.ProceduralMesh.Generators.Organic
Assembly
S1MAPI_Mono.dll

Defines the shape profile for a segmented organic body. Reference implementation for creating organic shapes like animal bodies.

public class BodyProfile
Inheritance
BodyProfile
Inherited Members

Remarks

This is a reference implementation provided as an example. For custom organic shapes, inherit from OrganicShapeGenerator and implement your own generation logic.

Constructors

BodyProfile(RingProfile[], int)

Create a custom body profile

public BodyProfile(RingProfile[] rings, int ringSegments = 8)

Parameters

rings RingProfile[]

Array of ring profiles

ringSegments int

Number of segments per ring

Properties

Cylindrical

Simple cylindrical body profile

public static BodyProfile Cylindrical { get; }

Property Value

BodyProfile

DefaultDogBody

Default dog body profile (front to tail)

public static BodyProfile DefaultDogBody { get; }

Property Value

BodyProfile

RingSegments

Number of vertices per ring (default 8)

public int RingSegments { get; set; }

Property Value

int

Rings

Array of ring profiles defining the body shape Each Vector4 contains: (z-position, widthScale, heightScaleTop, heightScaleBottom, asymmetry)

public RingProfile[] Rings { get; set; }

Property Value

RingProfile[]

Tapered

Tapered body profile (wider at front, narrow at back)

public static BodyProfile Tapered { get; }

Property Value

BodyProfile