Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

boundaries from 3dfaces (surface from 3dfaces)

20 REPLIES 20
SOLVED
Reply
Message 1 of 21
kbarnettza
2805 Views, 20 Replies

boundaries from 3dfaces (surface from 3dfaces)

Windows 8.1

Civil 3D 2015

 

I hope I just missed a setting somewhere

As far as I know, when 3DFACE objects are used to build a C3D Surface, C3D connects all the points - making additional triangles.

 

To get boundaries I use: FLATTEN, OVERKILL, REGION, UNION

 

Then I add the boundary to the Surface, resulting in what expected from the start - no additional triangles. Is there an easier way?

 

Also, FLATTEN lisp is not very clever - it converts 3DACE to a set of flat lines - just wanted the Z values to be zero, looks like I will make a small macro to do this which will speed up the process a little.

 

Thx for reading.

 

Kevin.

 

 

 

20 REPLIES 20
Message 2 of 21

Hello Kevin,
I am not sure if I understood you correctly: You have created a surface and you want to get the surface boundary?
If yes, there is an easy way to get the boundary of a surface: Select the surface and use AECCSURFACEEXTRACTOBJECTS in the command line.



Karsten Saenger
Message 3 of 21

No.

Received 3Dfaces from survey service provider.

Need to build surface from 3dfaces

Start with this:

3dfaces.png

 

add to new surface and get this:

surface.png

 

Many unwanted triangles in resulting surface

Could limit by adding build filter to not add lengths over certain length but thats still not the same as the data received.

 

To get correct boundary, need to : FLATTEN, OVERKILL, REGION, UNION .. lengthy process ..   : (  

 

Message 4 of 21

I see what you mean.
As far as I know and unfortunately there is no easy and one click solution to get the boundaries of the 3D faces before creating the surface.
You can try and play with the surface creation setting - such as min./max. triangle side length or max. angle - in order to get better results.


Karsten Saenger
Message 5 of 21
Lisa_Pohlmeyer
in reply to: kbarnettza

But, you can limit those large triangles. Inf the surface properties, Definition tab, set the maximum triangle length to the desired value. That should give you a better boundary to extract.

2014-04-23_8-04-16.jpg



Lisa Pohlmeyer
Civil 3D User
Website | Facebook | Twitter

Message 6 of 21
AllenJessup
in reply to: kbarnettza

Select all the 3D faces and use the LINEWORKSHRINKWRAP command. This will produce a polyline. It will be at a weird elevatioin but you can change it to 0. Sometimes this can cause a shif but it can be moved back to the correct area.

 

Allen

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 7 of 21
neilyj666
in reply to: kbarnettza

Why not try AECLINEWORKSHRINKWRAP after you have FLATTENed the faces?

 

Not perfect but a good start and obviously you should work on a copy of the data and paste the boundaries back afterwards. I just COPY the faces across by a suitable displacement, Save my drawing and then work on the boundary.

 

2014-04-23 14_29_02-AutoCAD Civil 3D 2014 - [C__Users_neilj_Desktop_Test Flatten.dwg].jpg

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 8 of 21
neilyj666
in reply to: AllenJessup

I've found this gives very weird results that do not honour the triangle sides and produces a polyline with extrusions (which cause problems) thus the method I outlined

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 9 of 21
AllenJessup
in reply to: kbarnettza

Flattening probably does give better results. I don't usually work with 3D faces so I just figured I'd try shrinkwrap and saw if produced what looked like a good polyline. I never actually used it as a boundary.

 

Allen

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 10 of 21
neilyj666
in reply to: AllenJessup

Yes when I first tried the shrinkwrap on faces I though it had worked until I zoomed in and the boundary was offset inconsistently throughout...:(

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 11 of 21
kbarnettza
in reply to: AllenJessup

Never heard of this command before, another hidden jewel, combine this with bpoly and we are away... thx a lot
Message 12 of 21
neilyj666
in reply to: kbarnettza

.....but bear in mind my previous posts and the warning that without FLATTENing the faces the boundary does not hounour the edges of the faces - you will need to zoom in to see this.

 

No Flatten Anomaly.jpg

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 13 of 21
AllenJessup
in reply to: neilyj666

Yes. That looks like the constant shift I was getting. I was handling it with a Move. But your Flatten method looks better overall.

 

Allen

Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 14 of 21
glaslp
in reply to: AllenJessup

The behaviour, described above

 

"It will be at a weird elevatioin but you can change it to 0. Sometimes this can cause a shif but it can be moved back to the correct area."

 

still exists in Civil 2018. So is it a bug or a feature?

Message 15 of 21
KDAddison
in reply to: kbarnettza

I've been using LINEWORKSHRINKWRAP with various sets of 3dfaces to define surface boundaries.  It usually works pretty well but sometimes in returns "Failed to create shrinkwrap." with no additional information.  Any ideas what could be causing this failure?

Message 16 of 21
neilyj666
in reply to: KDAddison

I don't know why this happens but did you read the rest of this thread?

 

3D faces must be flattened first to honour the boundary correctly. If they are not flattened you may be lucky and they may create a boundary that is consistently offset to the correct side to be used as an Outer boundary but this is a bit of a lottery.

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 17 of 21
KDAddison
in reply to: neilyj666

I have.  Going forward I've been flattening to ensure they honor the boundary (although I haven't yet noticed any inaccuracies without flattening)  For the cases where LINEWORKSHRINKWRAP throws the failed to create boundary result I've tried first converting them to regions, to 3d polylines, flattening from all three cases and strangely LINEWORKSHRINKWRAP always returns the same result.  Drawing the boundaries manually seems to be the only option for the cases where LINEWORKSHRINKWRAP fails.

Message 18 of 21
neilyj666
in reply to: KDAddison


@JoeCup wrote:

I have.  Going forward I've been flattening to ensure they honor the boundary (although I haven't yet noticed any inaccuracies without flattening) 


You may have to zoom in quite close to see any...

 

Some more suggestions:

 

  1. Run MAPCLEAN and break apart crossing objects and/or
  2. Draw a rectangle that encompasses all your objects and hatch inside it, then generate the hatch boundary
  3. Try erasing the lines within your shrink wrap boundary that will not form part of the boundary to reduce the object count

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 19 of 21
jim.poole
in reply to: neilyj666

Just come across this issue myself - anyone got anything better than the recent suggestions?

 

FLATTEN takes an age on several thousand triangles.

BORDER, REGION, UNION create peculiar effects.

 

SHRINKWRAP seems to perform a peculiar rotation of the collective surfaces / faces first. Almost sitting the shape in it's most stable configuration, allowing gravity to let it settle first, then circling it in this new plan view.

 

It's probably quicker to manually draw with a PLINE than any of the other ideas.

 

😞

Message 20 of 21
neilyj666
in reply to: jim.poole

I have nothing new to add except that FLATTEN works well for me with a few amendments

 

  1. I usually do not attempt to FLATTEN all at one - use a crossing window and take several attempts; don't worry about selection overlaps after the first run.
  2. Erase internal triangles using a crossing polygon selection to reduce the number to FLATTEN
  3. Ensure you  copy the triangles by Displacement out of the area of interest and work on these

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report