载入中...
搜索中...
未找到
VoxelCatalog.h
浏览该文件的文档.
112[[nodiscard]] EVENGINE_API_ORCHESTRATION bool canJoinVoxelSockets(const VoxelSocket& a, const VoxelSocket& b);
118[[nodiscard]] EVENGINE_API_ORCHESTRATION VoxelCellFill voxelClassifyModelFill(const VoxelModelValue& model);
127[[nodiscard]] EVENGINE_API_ORCHESTRATION VoxelPick pickVoxelModel(const VoxelModelValue& model, float ox, float oy,
132class EVENGINE_API_ORCHESTRATION VoxelCatalogTarget final : public ::eve::editing::EditableTargetState,
143 static CapabilityId propertyCapabilityId() { return CapabilityId("eve.editor.target.voxel-catalog-properties"); }
171 Result<DomainOperation> makeSet(const SelectionSnapshot&, const PropertyPath&, const EditorValue&,
174 Result<DomainOperation> makeReset(const SelectionSnapshot&, const PropertyPath&) const override;
A structured explanation of a failed, degraded, or noteworthy result.
Definition Diagnostic.h:94
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:314
Dirty region and revision shared by every editable document target.
Definition EditableTarget.h:154
Optional candidate/publish capability for atomic domain operations.
Definition EditingTargetOperations.h:26
Editable-target capability that applies owning domain operations.
Definition EditingTargetOperations.h:11
Optional capability exposing a deterministic, persistence-safe editing snapshot.
Definition EditableTarget.h:247
UI-independent property access for an immutable selection snapshot.
Definition EditingProperty.h:139
Dotted property path (layout.size) compared and persisted as text.
Definition EditingIds.h:78
Deterministic owning value tree shared by authoring hosts.
Definition EditingValue.h:19
Revisioned project of MagicaVoxel-style sculpted models.
Definition VoxelCatalog.h:137
Definition VoxelCatalog.cpp:10
VoxelCellFill voxelClassifyModelFill(const VoxelModelValue &model)
Classify a sculpted model as empty, partial, or a solid cube.
Definition VoxelCatalog.cpp:215
constexpr int kVoxelModelMaxOccupied
Occupied-cell budget for one sculpted object.
Definition VoxelCatalog.h:53
VoxelSocketKind voxelSocketKindFromName(std::string_view name)
Parse a socket kind name.
Definition VoxelCatalog.cpp:175
bool canJoinVoxelSockets(const VoxelSocket &a, const VoxelSocket &b)
True when two facing sockets may join.
Definition VoxelCatalog.cpp:196
bool isVoxelModelOccupied(const VoxelModelValue &model, int x, int y, int z)
True when model contains an occupied cell at (x,y,z).
Definition VoxelCatalog.cpp:210
int voxelOppositeFace(int face)
Opposite FaceDir index in PosX/NegX/PosY/NegY/PosZ/NegZ order.
Definition VoxelCatalog.cpp:204
constexpr int kVoxelModelMaxSize
Inclusive maximum MagicaVoxel-like object edge (cells).
Definition VoxelCatalog.h:51
const char * voxelSocketKindName(VoxelSocketKind kind)
Stable serialized name for a socket kind. @ownership Observed static string; callers must not free it...
Definition VoxelCatalog.cpp:182
VoxelPick pickVoxelModel(const VoxelModelValue &model, float ox, float oy, float oz, float dx, float dy, float dz, float maxDistance)
Raycast occupied cells with MagicaVoxel-style previous-cell attach.
Definition VoxelCatalog.cpp:222
Stable discovery metadata exposed by every editable target.
Definition EditableTarget.h:39
One occupied cell inside a sculpted model.
Definition VoxelCatalog.h:68
One MagicaVoxel-style object: a bounded occupancy grid.
Definition VoxelCatalog.h:75
std::array< VoxelSocket, 6 > sockets
Definition VoxelCatalog.h:81
std::vector< VoxelCoord > voxels
Definition VoxelCatalog.h:82
One face socket: matching tag plus compatible polarity.
Definition VoxelCatalog.h:62