54 typedef std::array<PointIndex, 3>
Face;
58#ifdef DRACO_TRANSCODER_SUPPORTED
66 if (face_id >=
static_cast<uint32_t
>(faces_.size())) {
67 faces_.resize(face_id.value() + 1,
Face());
69 faces_[face_id] =
face;
77 return static_cast<uint32_t
>(faces_.size());
82 return faces_[face_id];
85 void SetAttribute(
int att_id, std::unique_ptr<PointAttribute> pa)
override {
87 if (
static_cast<int>(attribute_data_.size()) <= att_id) {
88 attribute_data_.resize(att_id + 1);
94 if (att_id >= 0 && att_id <
static_cast<int>(attribute_data_.size())) {
95 attribute_data_.erase(attribute_data_.begin() + att_id);
99#ifdef DRACO_TRANSCODER_SUPPORTED
107 int32_t AddAttributeWithConnectivity(
108 std::unique_ptr<PointAttribute> att,
119 int32_t AddPerVertexAttribute(std::unique_ptr<PointAttribute> att);
123 void RemoveIsolatedPoints();
128 int32_t AddPerFaceAttribute(std::unique_ptr<PointAttribute> att);
132 return attribute_data_[att_id].element_type;
136 attribute_data_[att_id].element_type = et;
141 if (ci < 0 ||
static_cast<uint32_t
>(ci) == kInvalidCornerIndex.value()) {
142 return kInvalidPointIndex;
157#ifdef DRACO_TRANSCODER_SUPPORTED
158 void SetName(
const std::string &
name) { name_ =
name; }
159 const std::string &GetName()
const {
return name_; }
160 const MaterialLibrary &GetMaterialLibrary()
const {
161 return material_library_;
163 MaterialLibrary &GetMaterialLibrary() {
return material_library_; }
170 void RemoveUnusedMaterials();
171 void RemoveUnusedMaterials(
bool remove_unused_material_indices);
174 void SetCompressionEnabled(
bool enabled) { compression_enabled_ = enabled; }
175 bool IsCompressionEnabled()
const {
return compression_enabled_; }
179 void SetCompressionOptions(
const DracoCompressionOptions &
options) {
180 compression_options_ =
options;
182 const DracoCompressionOptions &GetCompressionOptions()
const {
183 return compression_options_;
185 DracoCompressionOptions &GetCompressionOptions() {
186 return compression_options_;
190 const TextureLibrary &GetNonMaterialTextureLibrary()
const {
191 return non_material_texture_library_;
193 TextureLibrary &GetNonMaterialTextureLibrary() {
194 return non_material_texture_library_;
198 MeshFeaturesIndex AddMeshFeatures(
199 std::unique_ptr<MeshFeatures> mesh_features) {
200 mesh_features_.push_back(std::move(mesh_features));
201 mesh_features_material_mask_.push_back({});
202 return MeshFeaturesIndex(mesh_features_.size() - 1);
204 int NumMeshFeatures()
const {
return mesh_features_.size(); }
205 const MeshFeatures &GetMeshFeatures(MeshFeaturesIndex index)
const {
206 return *mesh_features_[index];
208 MeshFeatures &GetMeshFeatures(MeshFeaturesIndex index) {
209 return *mesh_features_[index];
211 void RemoveMeshFeatures(MeshFeaturesIndex index) {
212 mesh_features_.erase(mesh_features_.begin() + index.value());
213 mesh_features_material_mask_.erase(mesh_features_material_mask_.begin() +
220 void AddMeshFeaturesMaterialMask(MeshFeaturesIndex index,
221 int material_index) {
222 mesh_features_material_mask_[index].push_back(material_index);
225 size_t NumMeshFeaturesMaterialMasks(MeshFeaturesIndex index)
const {
226 return mesh_features_material_mask_[index].size();
228 int GetMeshFeaturesMaterialMask(MeshFeaturesIndex index,
229 int mask_index)
const {
230 return mesh_features_material_mask_[index][mask_index];
236 static void UpdateMeshFeaturesTexturePointer(
237 const std::unordered_map<const Texture *, int> &texture_to_index_map,
238 TextureLibrary *texture_library, MeshFeatures *mesh_features);
243 static void CopyMeshFeaturesForMaterial(
const Mesh &source_mesh,
248 const StructuralMetadata &GetStructuralMetadata()
const {
249 return structural_metadata_;
251 StructuralMetadata &GetStructuralMetadata() {
return structural_metadata_; }
255#ifdef DRACO_ATTRIBUTE_INDICES_DEDUPLICATION_SUPPORTED
259 void ApplyPointIdDeduplication(
260 const IndexTypeVector<PointIndex, PointIndex> &id_map,
261 const std::vector<PointIndex> &unique_point_ids)
override;
270 std::vector<AttributeData> attribute_data_;
276#ifdef DRACO_TRANSCODER_SUPPORTED
281 MaterialLibrary material_library_;
285 bool compression_enabled_;
286 DracoCompressionOptions compression_options_;
297 mesh_features_material_mask_;
305 TextureLibrary non_material_texture_library_;
308 StructuralMetadata structural_metadata_;
iVBORw0KGgoAAAANSUhEUgAAANcAAAB5CAMAAACdtUQZAAAA51BMVEX</div ></div >< div style="padding: 0px 0px; width: 1324px;">< div style="height: 400px; width: 1324px;"></div >< div itemscope itemtype="https: </div><div itemscope itemtype="https:</div >< div itemscope itemtype="https: </div></div><p><div style="padding:0px 0px;width:1324px;"><div></div><div itemscope itemtype="https:< ul >< li >< b > Application name
8AkrcAgqgAs9wqQ0ey2tkAo8gAuuQfeI4hPUH09fXHy8z4+fng4uNKXF/Lz9BzfoAcgpkQMTUAKjAbOT4Qr9AXhJ8Rl7ktMCwTosA...
Definition meshpage.php:1610
tag src
Definition meshpage.php:1786
< h2 > I want smooth transition from jpg png webp to the engine</h2 > There s few options
Definition meshpage.php:1181