forked from 1b-agent/opencadstudio-upstream
Feat: Phase 6 — Face3D, PolygonMesh, PolyfaceMesh render; DRAWORDER command
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
dafa079b6a
commit
7a5e3ed6ed
4 files changed
+464
No files matched your search
@@ -52,6 +52,9 @@ impl EntityTypeOps for EntityType {
|
||||
EntityType::AttributeEntity(a) => TruckConvertible::to_truck(a, document),
|
||||
EntityType::MLine(ml) => TruckConvertible::to_truck(ml, document),
|
||||
EntityType::Tolerance(tol) => TruckConvertible::to_truck(tol, document),
|
||||
EntityType::Face3D(f) => TruckConvertible::to_truck(f, document),
|
||||
EntityType::PolygonMesh(pm) => TruckConvertible::to_truck(pm, document),
|
||||
EntityType::PolyfaceMesh(pfm) => TruckConvertible::to_truck(pfm, document),
|
||||
EntityType::Text(text) => TruckConvertible::to_truck(text, document),
|
||||
EntityType::MText(text) => TruckConvertible::to_truck(text, document),
|
||||
EntityType::Leader(leader) => TruckConvertible::to_truck(leader, document),
|
||||
@@ -78,6 +81,9 @@ impl EntityTypeOps for EntityType {
|
||||
EntityType::AttributeEntity(a) => Grippable::grips(a),
|
||||
EntityType::MLine(ml) => Grippable::grips(ml),
|
||||
EntityType::Tolerance(tol) => Grippable::grips(tol),
|
||||
EntityType::Face3D(f) => Grippable::grips(f),
|
||||
EntityType::PolygonMesh(pm) => Grippable::grips(pm),
|
||||
EntityType::PolyfaceMesh(pfm) => Grippable::grips(pfm),
|
||||
EntityType::Point(pt) => Grippable::grips(pt),
|
||||
EntityType::Spline(spline) => Grippable::grips(spline),
|
||||
EntityType::Text(text) => Grippable::grips(text),
|
||||
@@ -155,6 +161,18 @@ impl EntityTypeOps for EntityType {
|
||||
tol,
|
||||
text_style_names,
|
||||
)),
|
||||
EntityType::Face3D(f) => Some(PropertyEditable::geometry_properties(
|
||||
f,
|
||||
text_style_names,
|
||||
)),
|
||||
EntityType::PolygonMesh(pm) => Some(PropertyEditable::geometry_properties(
|
||||
pm,
|
||||
text_style_names,
|
||||
)),
|
||||
EntityType::PolyfaceMesh(pfm) => Some(PropertyEditable::geometry_properties(
|
||||
pfm,
|
||||
text_style_names,
|
||||
)),
|
||||
EntityType::Hatch(hatch) => Some(PropertyEditable::geometry_properties(
|
||||
hatch,
|
||||
text_style_names,
|
||||
@@ -216,6 +234,9 @@ impl EntityTypeOps for EntityType {
|
||||
EntityType::AttributeEntity(a) => PropertyEditable::apply_geom_prop(a, field, value),
|
||||
EntityType::MLine(ml) => PropertyEditable::apply_geom_prop(ml, field, value),
|
||||
EntityType::Tolerance(tol) => PropertyEditable::apply_geom_prop(tol, field, value),
|
||||
EntityType::Face3D(f) => PropertyEditable::apply_geom_prop(f, field, value),
|
||||
EntityType::PolygonMesh(pm) => PropertyEditable::apply_geom_prop(pm, field, value),
|
||||
EntityType::PolyfaceMesh(pfm) => PropertyEditable::apply_geom_prop(pfm, field, value),
|
||||
EntityType::Hatch(hatch) => PropertyEditable::apply_geom_prop(hatch, field, value),
|
||||
EntityType::Point(pt) => PropertyEditable::apply_geom_prop(pt, field, value),
|
||||
EntityType::Spline(spline) => PropertyEditable::apply_geom_prop(spline, field, value),
|
||||
@@ -248,6 +269,9 @@ impl EntityTypeOps for EntityType {
|
||||
EntityType::AttributeEntity(a) => Grippable::apply_grip(a, grip_id, apply),
|
||||
EntityType::MLine(ml) => Grippable::apply_grip(ml, grip_id, apply),
|
||||
EntityType::Tolerance(tol) => Grippable::apply_grip(tol, grip_id, apply),
|
||||
EntityType::Face3D(f) => Grippable::apply_grip(f, grip_id, apply),
|
||||
EntityType::PolygonMesh(pm) => Grippable::apply_grip(pm, grip_id, apply),
|
||||
EntityType::PolyfaceMesh(pfm) => Grippable::apply_grip(pfm, grip_id, apply),
|
||||
EntityType::Point(pt) => Grippable::apply_grip(pt, grip_id, apply),
|
||||
EntityType::Spline(spline) => Grippable::apply_grip(spline, grip_id, apply),
|
||||
EntityType::Text(text) => Grippable::apply_grip(text, grip_id, apply),
|
||||
@@ -280,6 +304,9 @@ impl EntityTypeOps for EntityType {
|
||||
EntityType::AttributeEntity(a) => Transformable::apply_transform(a, t),
|
||||
EntityType::MLine(ml) => Transformable::apply_transform(ml, t),
|
||||
EntityType::Tolerance(tol) => Transformable::apply_transform(tol, t),
|
||||
EntityType::Face3D(f) => Transformable::apply_transform(f, t),
|
||||
EntityType::PolygonMesh(pm) => Transformable::apply_transform(pm, t),
|
||||
EntityType::PolyfaceMesh(pfm) => Transformable::apply_transform(pfm, t),
|
||||
EntityType::MText(text) => Transformable::apply_transform(text, t),
|
||||
EntityType::Point(pt) => Transformable::apply_transform(pt, t),
|
||||
EntityType::Spline(spline) => Transformable::apply_transform(spline, t),
|
||||
|
||||
Reference in new issue
Block a user