MeshBrepsHeimrathRefactoredsolve Method
meshes a list of breps such that their vertices coincide on common edges. The minimum mesh-size is hard-coded to 5mm. This is due to tolerance checks and will be removed in future.
Namespace: Karamba.GHopper.Utilities.MesherAssembly: karamba (in karamba.dll) Version: 1.0.0+eb23a7103f0eca0b6d808121e15fec6899194e15
public static List<Mesh> solve(
List<Brep> inputBreps,
List<Point3d> inputInclusionPoints,
out string warning,
out string info,
double mResolution = 1,
int mMode = 0,
double refineEdgeResFactor = 0.666666666666667,
double cullDist = 0.5,
double tolerance = 0.001,
double smooth = 0.5,
int steps = 0
)
Public Shared Function solve (
inputBreps As List(Of Brep),
inputInclusionPoints As List(Of Point3d),
<OutAttribute> ByRef warning As String,
<OutAttribute> ByRef info As String,
Optional mResolution As Double = 1,
Optional mMode As Integer = 0,
Optional refineEdgeResFactor As Double = 0.666666666666667,
Optional cullDist As Double = 0.5,
Optional tolerance As Double = 0.001,
Optional smooth As Double = 0.5,
Optional steps As Integer = 0
) As List(Of Mesh)
public:
static List<Mesh^>^ solve(
List<Brep^>^ inputBreps,
List<Point3d>^ inputInclusionPoints,
[OutAttribute] String^% warning,
[OutAttribute] String^% info,
double mResolution = 1,
int mMode = 0,
double refineEdgeResFactor = 0.666666666666667,
double cullDist = 0.5,
double tolerance = 0.001,
double smooth = 0.5,
int steps = 0
)
static member solve :
inputBreps : List<Brep> *
inputInclusionPoints : List<Point3d> *
warning : string byref *
info : string byref *
?mResolution : float *
?mMode : int *
?refineEdgeResFactor : float *
?cullDist : float *
?tolerance : float *
?smooth : float *
?steps : int
(* Defaults:
let _mResolution = defaultArg mResolution 1
let _mMode = defaultArg mMode 0
let _refineEdgeResFactor = defaultArg refineEdgeResFactor 0.666666666666667
let _cullDist = defaultArg cullDist 0.5
let _tolerance = defaultArg tolerance 0.001
let _smooth = defaultArg smooth 0.5
let _steps = defaultArg steps 0
*)
-> List<Mesh>
- inputBreps ListBrep
- list of breps to be meshed.
- inputInclusionPoints ListPoint3d
- points to be added to the mesh as vertices if their distance from the breps is not too large.
- warning String
- warning encountered during mesh generation.
- info String
- information regarding the meshing process.
- mResolution Double (Optional)
- characteristic length of the resulting face edges.
- mMode Int32 (Optional)
- case 0: No Point Reduction (check Cull Mode),
case 1: Point Reduction is set to 'Leave One', Culling Points at distance. lt "0.5" times Mesh Resolution
case 2: Point Reduction is set to 'Average', Culling Points at distance lt "0.5" times Mesh Resolution.
- refineEdgeResFactor Double (Optional)
- Edges are refined with: Math.Round(refineEdgeResFactor, 2) x Mesh Resolution.
- cullDist Double (Optional)
- Vertices closer than cullDist get removed.
- tolerance Double (Optional)
- tolerance *0.1 = tolerance for Delauney triangulation.
- smooth Double (Optional)
- must be between 0 and 1; smoothes the mesh.
- steps Int32 (Optional)
- number of steps for smoothing the mesh.
ListMeshresulting meshes.