Curvy  8.3.0
BuildVolumeMesh Class Reference
+ Inheritance diagram for BuildVolumeMesh:
+ Collaboration diagram for BuildVolumeMesh:

Public Attributes

CGModuleInputSlot InVolume = new CGModuleInputSlot()
 
CGModuleOutputSlot OutVMesh = new CGModuleOutputSlot()
 
- Public Attributes inherited from CGModule
List< CGModuleLinkInputLinks = new List<CGModuleLink>()
 
List< CGModuleLinkOutputLinks = new List<CGModuleLink>()
 
CGModuleProperties Properties = new CGModuleProperties()
 
List< string > UIMessages = new List<string>()
 

Properties

bool GenerateUV [get, set]
 
bool GenerateUV2 [get, set]
 
int MaterialCount [get]
 
List< CGMaterialSettingsExMaterialSettings [get]
 
List< CGMaterialSettingsExMaterialSetttings [get]
 
bool ReverseTriOrder [get, set]
 
bool Split [get, set]
 Split the mesh into submeshes More...
 
float SplitLength [get, set]
 
bool SplitUV2 [get, set]
 For backward compatibility only. Is ignored when Split or Generate UV2 is false. If enabled, UV2s of a split mesh will be computed as in Curvy versions prior to 8.0.0, which had a bug: all the split submeshes used the full range of UV2 coordinates, instead of keeping the same UV2s from the unsplit mesh. More...
 
bool UnscaleU [get, set]
 When set to true, and if the input Shape Extrusion module is set to apply scaling, the U coordinate of the generated mesh will be modified to compensate that scaling. Only the X component of the scaling is taken into consideration. The unscaling works best on volumes with flat shapes. More...
 
float UnscalingOrigin [get, set]
 When unscaling the U coordinate, this field defines what is the scaling origin. 0.5 gives usually the best results, but you might need to set it to a different value, usually between 0 and 1 More...
 
- Properties inherited from CGModule
bool Active [get, set]
 
bool CircularReferenceError [get, set]
 Whether this module has circular reference errors More...
 
bool Dirty [get, set]
 
CurvyGenerator Generator [get]
 
ModuleInfoAttribute Info [get]
 
List< CGModuleInputSlotInput [get]
 
Dictionary< string, CGModuleInputSlotInputByName [get]
 
virtual bool IsConfigured [get]
 Gets whether the module is properly configured i.e. has everything to work like intended More...
 
virtual bool IsInitialized [get]
 Gets whether the module and all its dependencies are fully initialized More...
 
string ModuleName [get, set]
 
CurvyCGEvent OnBeforeRefresh [get, set]
 
CurvyCGEvent OnRefresh [get, set]
 
List< CGModuleOutputSlotOutput [get]
 
Dictionary< string, CGModuleOutputSlotOutputByName [get]
 
bool RandomizeSeed [get, set]
 If is set to false, Seed is used to initialize Unity's random numbers generator before refreshing the current module. If set to true, a random seed will be used More...
 
int Seed [get, set]
 If RandomizeSeed is set to false, Seed is used to initialize Unity's random numbers generator before refreshing the If RandomizeSeed is set to true, a random seed will be used current module More...
 
int UniqueID [get]
 

Public Member Functions

int AddMaterial ()
 
Material GetMaterial (int index)
 
override void Refresh ()
 Add Module processing code in here More...
 
void RemoveMaterial (int index)
 
void SetMaterial (int index, Material mat)
 
- Public Member Functions inherited from CGModule
Component AddManagedResource (string resourceName, string context="", int index=-1)
 
CGModule CopyTo (CurvyGenerator targetGenerator)
 
void Delete ()
 
virtual bool DeleteAllOutputManagedResources ()
 Delete all the managed resources acting as an output. One example of this are the generated meshes by the FluffyUnderware.Curvy.Generator.Modules.CreateMesh module More...
 
void DeleteAllPrefabPools ()
 
void DeleteManagedResource (string resourceName, Component res, [NotNull] string context="", bool dontUsePool=false)
 
List< IPool > GetAllPrefabPools ()
 
CGModuleLink GetInputLink (CGModuleInputSlot inSlot, CGModuleOutputSlot outSlot)
 
List< CGModuleLinkGetInputLinks (CGModuleInputSlot inSlot)
 
CGModuleInputSlot GetInputSlot (string name)
 
List< CGModuleInputSlotGetInputSlots (System.Type filterType=null)
 
bool GetManagedResources (out List< Component > components, out List< string > resourceNames)
 
CGModuleLink GetOutputLink (CGModuleOutputSlot outSlot, CGModuleInputSlot inSlot)
 
List< CGModuleLinkGetOutputLinks (CGModuleOutputSlot outSlot)
 
CGModuleOutputSlot GetOutputSlot (string name)
 
List< CGModuleOutputSlotGetOutputSlots (System.Type filterType=null)
 
void Initialize ()
 
bool IsManagedResource (Component res)
 
virtual void OnStateChange ()
 Called when a module's state changes (Link added/removed, Active toggles etc..) More...
 
virtual void OnTemplateCreated ()
 Called after a module was copied to a template More...
 
void ReInitializeLinkedSlots ()
 
virtual void Reset ()
 

Additional Inherited Members

- Protected Member Functions inherited from CGModule
virtual void Awake ()
 
CurvyCGEventArgs OnBeforeRefreshEvent (CurvyCGEventArgs e)
 
virtual void OnDestroy ()
 
virtual void OnDisable ()
 
virtual void OnEnable ()
 
CurvyCGEventArgs OnRefreshEvent (CurvyCGEventArgs e)
 
- Static Protected Member Functions inherited from CGModule
static T GetRequestParameter< T > (ref CGDataRequestParameter[] requests)
 Gets a request parameter of a certain type More...
 
static void RemoveRequestParameter (ref CGDataRequestParameter[] requests, CGDataRequestParameter request)
 Removes a certain request parameter from the requests array More...
 

Member Function Documentation

int AddMaterial ( )
Material GetMaterial ( int  index)
override void Refresh ( )
virtual

Add Module processing code in here

Reimplemented from CGModule.

void RemoveMaterial ( int  index)
void SetMaterial ( int  index,
Material  mat 
)

Member Data Documentation

Property Documentation

bool GenerateUV
getset
bool GenerateUV2
getset
int MaterialCount
get
List<CGMaterialSettingsEx> MaterialSettings
get
List<CGMaterialSettingsEx> MaterialSetttings
get
bool ReverseTriOrder
getset
bool Split
getset

Split the mesh into submeshes

float SplitLength
getset
bool SplitUV2
getset

For backward compatibility only. Is ignored when Split or Generate UV2 is false. If enabled, UV2s of a split mesh will be computed as in Curvy versions prior to 8.0.0, which had a bug: all the split submeshes used the full range of UV2 coordinates, instead of keeping the same UV2s from the unsplit mesh.

bool UnscaleU
getset

When set to true, and if the input Shape Extrusion module is set to apply scaling, the U coordinate of the generated mesh will be modified to compensate that scaling. Only the X component of the scaling is taken into consideration. The unscaling works best on volumes with flat shapes.

float UnscalingOrigin
getset

When unscaling the U coordinate, this field defines what is the scaling origin. 0.5 gives usually the best results, but you might need to set it to a different value, usually between 0 and 1


The documentation for this class was generated from the following file: