With the redesign of the SCM terrain and the switch to using a virtual 
Cartesian grid, there is really no need for adaptive refinement.

If possible, I suggest specifying the highest resolution you desire for the 
entire SCM terrain patch and defining so-called moving patches (see 
AddMovingPatch<https://github.com/projectchrono/chrono/blob/afc19b23163cff20ab7fac81112f9e73923949a0/src/chrono_vehicle/terrain/SCMTerrain.h#L154>)
 which are bounding boxes attached to any object that could interact with the 
SCM terrain (if none are defined, at each time step a single box, bounding all 
collision shapes currently present in the simulation, is created under the 
hood).  Ray casting (the most expensive operation in the SCM calculations) is 
then done only from those SCM grid nodes that are inside the projections of 
these moving bounding boxes onto the SCM plane.

If it is not possible to define individual bounding boxes (moving patches) 
associated with all collision objects of interest, you should be able to define 
multiple SCM terrain patches, each with its own resolution, in the same 
simulation. I have not tried this myself, but I cannot think of anything in the 
SCMTerrain implementation that would prevent you from doing this.

--Radu


From: [email protected] <[email protected]> On Behalf 
Of sicheng huang
Sent: Monday, March 13, 2023 9:18 AM
To: [email protected]
Subject: [chrono] Request for Guidance on Fine-grained Grid Refinement for 
SCMDeformableTerrain


Hello,

I am writing for guidance on a technical issue related to SCMDeformableTerrain. 
Specifically, I need to perform fine-grained grid refinement on the middle 
local area of the terrain to generate high-resolution and low-resolution areas 
of SCMDeformableTerrain.

To provide some context, my project requires me to create an accurate 
simulation environment using SCMDeformableTerrain. However, the terrain's 
current resolution is insufficient for my needs. I need to refine the grid 
resolution in the middle area to obtain a more detailed terrain representation.

I am reaching out to your team to ask for guidance on how to accomplish this 
task. Could you provide me with any resources or suggestions on how to perform 
grid refinement in SCMDeformableTerrain, particularly for the middle local 
area? I would greatly appreciate any insights or advice that you may have.

Thank you for your time and consideration, and I look forward to hearing from 
you soon.

--
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/CAFZZDjWM6xyCiWCW0UyV5_2Dt0aDKi%3DynVaVoteFfEdqTD92ZQ%40mail.gmail.com<https://groups.google.com/d/msgid/projectchrono/CAFZZDjWM6xyCiWCW0UyV5_2Dt0aDKi%3DynVaVoteFfEdqTD92ZQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/PH0PR06MB8237D9EDB4FEE0852F6A722DA7899%40PH0PR06MB8237.namprd06.prod.outlook.com.

Reply via email to