Find nearest surface
Hi,
I m checking for a command to select an surface nearest to the selected surface. Anybody can help me plz.
Basically i have a solid and surface imported from catia (Surface is overlapping on solid). now in hypermesh i want to know the project the surface mesh to solid surface (solid surface - which on it is overlapping).
any help plz.
Answers
-
-
I have changed it to By Topo but still couldn't get the answer.
0 -
Hello,
You can try to identify overlapping surfaces by the following tool: 'Geometry->Check->Surfaces->Interference'
Now follow this:
- Select surfaces of the single surface and the solid (e.g. select one solid surface, extend it by attached) for 'surfaces'
- Switch 'Isolate only failure' to None
- Switch 'Save failed' to Surfaces
- Press Run
Now the intersecting surfaces are saved und you can retrieve it by any surface command, e.g. mask->surfs->retrieve (see picture)
Best Regards,
Mario
0 -
Hi all, i think i'm not very clear with my problem. here are few pictures which will display my issue i hope.
The free surface over here is meshed and now i want to project the elements to the solidbody-picture3 (corresponding face/surface) for that i need to know the surface_ID for using the following command.
*markprojecttosurface entities mark vector surface
0 -
try the following command, it will return the distance to nearest surface as well as the id of nearest surface.
You need to provide all surface ids of the solid as a list.
0 -
Altair Forum User said:
Hi all, i think i'm not very clear with my problem. here are few pictures which will display my issue i hope.
<?xml version="1.0" encoding="UTF-8"?><?xml version="1.0" encoding="UTF-8"?>
The free surface over here is meshed and now i want to project the elements to the solidbody-picture3 (corresponding face/surface) for that i need to know the surface_ID for using the following command.
*markprojecttosurface entities mark vector surface
Hi
To get surface ID you can use Tools=>find=>surface with number ticked ON. This would give you the surface ID's.
0 -
Hi Nachiket Kadu, i'm trying to get the through command.
0 -
Hi, if you want to get the solid surface by tcl command, try this
#find center of the free surface:
lassign [join [hm_getgeometrybox surfs $FreeSurfID]] x1 y1 z1 x2 y2 z2
set centerx [expr ($x1+$x2)/2]
set centery [expr ($y1+$y2)/2]
set centerz [expr ($z1+$z2)/2]
#now find the surface that closest to above center:
*createmark surfs 1 all
hm_markremove surfs 1 $FreeSurfID; #we don't want to find the free surface anymore
lassign [hm_measureshortestdistance2 $centerx $centery $centerz surfs 1 0 0] => => => => ClosestSurfID
puts $ClosestSurfID
/emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20' />
0 -
Hi Tinh, Can u tell me what are x1 y1 z1 x2 y2 z2
0 -
Hi
those are the lowest and highest coordinates of the surf
0 -
Thank u Tinh it is working now.
0