|
27 | 27 | Callback method that should return the vertices of a mesh. Do not call this method. This can be overridden by derived classes when creating a custom mesh type in GDScript or another scripting language. See [method get_vertices] for details of the returned data. |
28 | 28 | </description> |
29 | 29 | </method> |
| 30 | + <method name="_update_cross_section_mesh" qualifiers="virtual"> |
| 31 | + <return type="void" /> |
| 32 | + <description> |
| 33 | + Updates the 3D mesh this mesh uses for cross-section rendering. Can be called to force the cross-section mesh to be updated, but typically should only be called internally. Subclasses can override this, but most cases should be covered by the default implementation. |
| 34 | + </description> |
| 35 | + </method> |
30 | 36 | <method name="_validate_material_for_mesh" qualifiers="virtual"> |
31 | 37 | <return type="void" /> |
32 | 38 | <param index="0" name="material" type="Material4D" /> |
|
48 | 54 | [b]Note[/b]: This only looks at edge indices. It does not remove duplicate vertices, nor does it have access to the vertices array. |
49 | 55 | </description> |
50 | 56 | </method> |
| 57 | + <method name="get_cross_section_mesh"> |
| 58 | + <return type="ArrayMesh" /> |
| 59 | + <description> |
| 60 | + Returns a 3D mesh that can be used to render 3D cross-sections of this mesh in the cross-section renderer. This mesh will only render properly with the cross-section material from [method Material4D.get_cross_section_material]. |
| 61 | + </description> |
| 62 | + </method> |
51 | 63 | <method name="get_edge_indices"> |
52 | 64 | <return type="PackedInt32Array" /> |
53 | 65 | <description> |
|
82 | 94 | If a mesh has valid data, the result of the validation will be cached until the mesh data changes, so this method may be called multiple times without performance concerns. This also means this method should be called after generating a mesh. This especially useful when generating a mesh on a thread; calling this on the thread will avoid stalling the main thread with mesh validation during rendering. |
83 | 95 | </description> |
84 | 96 | </method> |
| 97 | + <method name="mark_cross_section_mesh_dirty"> |
| 98 | + <return type="void" /> |
| 99 | + <description> |
| 100 | + Marks the cross-section mesh as dirty, meaning it needs to be updated. Must be called by subclasses whenever the underlying 4D mesh data changes. |
| 101 | + </description> |
| 102 | + </method> |
85 | 103 | <method name="reset_mesh_data_validation"> |
86 | 104 | <return type="void" /> |
87 | 105 | <description> |
|
101 | 119 | Converts this Mesh4D to a [WireMesh4D]. This method will use the best conversion available. For example, a [BoxTetraMesh4D] will be converted to a [BoxWireMesh4D]. If no specialized conversion is available, the method will return an [ArrayWireMesh4D]. See [method to_array_wire_mesh] for more details. |
102 | 120 | </description> |
103 | 121 | </method> |
| 122 | + <method name="update_cross_section_mesh"> |
| 123 | + <return type="void" /> |
| 124 | + <description> |
| 125 | + Updates the 3D mesh this mesh uses for cross-section rendering. Can be called to force the cross-section mesh to be updated, but typically should only be called internally. |
| 126 | + </description> |
| 127 | + </method> |
104 | 128 | <method name="validate_material_for_mesh"> |
105 | 129 | <return type="void" /> |
106 | 130 | <param index="0" name="material" type="Material4D" /> |
|
0 commit comments