载入中...
搜索中...
未找到
eve::physics::SoftBodyModelDefinition结构体 参考

Versioned authoring recipe used to cook a mesh-backed SoftBodyModel. 更多...

#include <SoftBodyModelDefinition.h>

Public 成员函数

eve::Result< void > validate () const
 Validate the complete immutable cooking recipe.
 
eve::Result< eve::Value > toValue () const
 Encode every version-1 field into an owning persistent value.
 

静态 Public 成员函数

static eve::Result< SoftBodyModelDefinition > fromValue (const eve::Value &value)
 Decode version 1 transactionally and reject unknown fields.
 
static eve::schema::SchemaDefinition schemaDefinition ()
 Return the registry schema for tooling and generic JSON validation.
 
static eve::Result< void > ensureSchemaRegistered ()
 Idempotently register version 1 in the process schema registry.
 

Public 属性

std::string sourceMesh
 
SoftBodySurfaceSampling surfaceSampling = SoftBodySurfaceSampling::Vertices
 
int surfaceResolution = 16
 
SoftBodyVolumeSampling volumeSampling = SoftBodyVolumeSampling::None
 
int volumeResolution = 16
 
int shapeResolution = 48
 
float maxAnisotropy = 3.f
 
float smoothing = 0.25f
 

静态 Public 属性

static constexpr std::string_view SchemaId = "physics:softbody-model"
 
static constexpr std::uint32_t SchemaVersion = 1
 

详细描述

Versioned authoring recipe used to cook a mesh-backed SoftBodyModel.

在文件 SoftBodyModelDefinition.h 第 21 行定义.

成员函数说明

◆ ensureSchemaRegistered()

eve::Result< void > eve::physics::SoftBodyModelDefinition::ensureSchemaRegistered ( )
static

◆ fromValue()

◆ schemaDefinition()

◆ toValue()

eve::Result< eve::Value > eve::physics::SoftBodyModelDefinition::toValue ( ) const

◆ validate()

eve::Result< void > eve::physics::SoftBodyModelDefinition::validate ( ) const

类成员变量说明

◆ maxAnisotropy

float eve::physics::SoftBodyModelDefinition::maxAnisotropy = 3.f

在文件 SoftBodyModelDefinition.h 第 31 行定义.

被这些函数引用 fromValue(), toValue() , 以及 validate().

◆ SchemaId

constexpr std::string_view eve::physics::SoftBodyModelDefinition::SchemaId = "physics:softbody-model"
staticconstexpr

在文件 SoftBodyModelDefinition.h 第 22 行定义.

被这些函数引用 ensureSchemaRegistered(), fromValue(), schemaDefinition() , 以及 toValue().

◆ SchemaVersion

constexpr std::uint32_t eve::physics::SoftBodyModelDefinition::SchemaVersion = 1
staticconstexpr

在文件 SoftBodyModelDefinition.h 第 23 行定义.

被这些函数引用 schemaDefinition() , 以及 toValue().

◆ shapeResolution

int eve::physics::SoftBodyModelDefinition::shapeResolution = 48

在文件 SoftBodyModelDefinition.h 第 30 行定义.

被这些函数引用 fromValue() , 以及 toValue().

◆ smoothing

float eve::physics::SoftBodyModelDefinition::smoothing = 0.25f

在文件 SoftBodyModelDefinition.h 第 32 行定义.

被这些函数引用 fromValue(), toValue() , 以及 validate().

◆ sourceMesh

std::string eve::physics::SoftBodyModelDefinition::sourceMesh

在文件 SoftBodyModelDefinition.h 第 25 行定义.

被这些函数引用 fromValue(), toValue() , 以及 validate().

◆ surfaceResolution

int eve::physics::SoftBodyModelDefinition::surfaceResolution = 16

在文件 SoftBodyModelDefinition.h 第 27 行定义.

被这些函数引用 fromValue() , 以及 toValue().

◆ surfaceSampling

SoftBodySurfaceSampling eve::physics::SoftBodyModelDefinition::surfaceSampling = SoftBodySurfaceSampling::Vertices

在文件 SoftBodyModelDefinition.h 第 26 行定义.

被这些函数引用 fromValue(), toValue() , 以及 validate().

◆ volumeResolution

int eve::physics::SoftBodyModelDefinition::volumeResolution = 16

在文件 SoftBodyModelDefinition.h 第 29 行定义.

被这些函数引用 fromValue() , 以及 toValue().

◆ volumeSampling

SoftBodyVolumeSampling eve::physics::SoftBodyModelDefinition::volumeSampling = SoftBodyVolumeSampling::None

在文件 SoftBodyModelDefinition.h 第 28 行定义.

被这些函数引用 fromValue(), toValue() , 以及 validate().


该结构体的文档由以下文件生成: