You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/solidmodels.md
+38-1Lines changed: 38 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,10 +68,47 @@ Other operations:
68
68
69
69
### Meshing
70
70
71
-
Entities can carry mesh sizing information with them when rendered to a `SolidModel`. Many entities will default to a maximal size to reasonably resolve the geometry. This is particularly useful together with adaptive mesh refinement to efficiently refine your mesh to minimize estimated error with as few elements as possible. You can also style entities with [`MeshSized`](@ref) to manually control mesh sizing, and provide `MeshingParameters` to `render!` using the `meshing_parameters` keyword argument.
71
+
Entities can carry mesh sizing information with them when rendered to a `SolidModel`. Many
72
+
entities will default to a maximal size to reasonably resolve the geometry. This is
73
+
particularly useful together with adaptive mesh refinement to efficiently refine your mesh
74
+
to minimize estimated error with as few elements as possible. You can also style entities
75
+
with [`MeshSized`](@ref) to manually control mesh sizing, the [`SolidModels.mesh_scale`](@ref),
76
+
[`SolidModels.mesh_order`](@ref) and [`SolidModels.mesh_grading_default`](@ref) methods are used to modify the
77
+
global default parameters used in each sizing field (see [`MeshSized`](@ref)).
78
+
79
+
Size fields within a `SolidModel` are specified in terms of control points, which are
80
+
spatial locations combined with an `(h, α)` as in [`MeshSized`](@ref). When a model is
81
+
rendered, a set of control points are computed from the geometry, and these are then used to
82
+
create `KDTree` structures to allow for rapid evaluation. Additional points can be manually
83
+
inserted into a `SolidModel` after `render!` is called, and the global size parameters
84
+
[`SolidModels.mesh_scale`](@ref), [`SolidModels.mesh_order`](@ref) and [`SolidModels.mesh_grading_default`](@ref) modified without requiring `render!`
85
+
to be called again. This allows for iteration on the mesh for a given fixed geometry. Manual
86
+
modification of the control points is in general not necessary but can be achieved through
This struct is deprecated. Use [`mesh_scale`](@ref), [`mesh_grading_default`](@ref),
666
-
[`mesh_order`](@ref), and [`gmsh_option`](@ref) instead.
667
+
This struct is deprecated. See [`render!`](@ref)
667
668
668
669
MeshingParameters contains high level parameters to specify mesh sizing
669
670
fields throughout the domain.
@@ -734,14 +735,14 @@ Render `cs` to `sm`.
734
735
Map all metadata to zero.
735
736
- `gmsh_options`: Dictionary of gmsh option name-value pairs to set before meshing.
736
737
- `meshing_parameters`: **Deprecated.** Use individual mesh control functions
737
-
[`mesh_scale`](@ref), [`mesh_order`](@ref) and [`mesh_grading_default`](@ref), along with
738
+
[`DeviceLayout.SolidModels.mesh_scale`](@ref), [`DeviceLayout.SolidModels.mesh_order`](@ref) and [`DeviceLayout.SolidModels.mesh_grading_default`](@ref), along with
738
739
`gmsh_options` instead.
739
740
740
741
Available postrendering operations include [`translate!`](@ref), [`extrude_z!`](@ref), [`revolve!`](@ref),
741
742
[`union_geom!`](@ref), [`intersect_geom!`](@ref), [`difference_geom!`](@ref), [`fragment_geom!`](@ref), and [`box_selection`](@ref).
742
743
(The geometric Boolean operations are only available for models using the OpenCASCADE kernel.)
743
744
744
-
Additional keyword arguments are passed to [`SolidModels.to_primitives`](@ref) (which falls back to
745
+
Additional keyword arguments are passed to [`DeviceLayout.SolidModels.to_primitives`](@ref) (which falls back to
745
746
[`to_polygons`](@ref)) and may be used for
746
747
certain entity types to control how entities of `cs` are converted to primitives and added to `sm`.
0 commit comments