News:

When replying to a specific statement be sure to quote the previous post.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Create Solid from Surface

Started by Wildturbo, August 21, 2024, 09:44:25 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Wildturbo

TC 2023 Platinum
I have an engineering survey model which provides a surface representation of an allotment in the form of a TC Surface. The surface effectively has no depth, and I want to convert it to a solid so that I can carry out volumetric type calcs using the 3d Boolean functions.

I have converted the TC surface to a SMESH, utilised the Modify>Surface Mesh>Solidfy to create a SMESH object with depth and then converted this to an ACIS solid. It looks fine, however my problem is the ACIS solid is now shell like without any volume.

Is there a way of solidifying this shell? I have searched through previous topics which do not seem to address this issue.

Attached is the model; the surface is within the layer "S-TRIA SURVEY TC Surface"
Simple conversion to Smesh within the SMESH layer.
Utilising the Modify>Surface Mesh>Solidfy commend is within the SMESH solidify Layer
Simple solid conversion within the ACIS solid layer.

Adding to my confusion with this, reading through the manual there is a Create Solid from Surface option, but it indicates that it works only with  ACIS objects. The manual instructs to start with a solid or surface - is there such a thing as an ACIS surface (which seems to go against the logic of ACIS) or am I reading this incorrectly? Obviously I can convert between the Smesh object to a TC Surface quite easily, however the Create Solid from Surface will not activate for a TC Surface.

Format> Create Solid from Surface

Manual

This tool works with ACIS objects only. It does not work with TCSurfaces. Enables you to convert a surface into a solid volume, within the surfaces' boundaries.

Start with a solid or surface. If you have a solid, select it and use Create Surface From Solid to convert it into a surface. This example uses a sphere.



You cannot view this attachment.
Turbocad 2023 Platinum and civil design 2023 plug in, both 64 bit.
Lenovo ThinkPad P16 Gen 1, 12th Gen Intel(R) Core(TM) i7-12850HX   2.10 GHz, 32 GB RAM

murray dickinson

#1
What version is your file?  2020 and 2022 protested "no filter matching this file".  Ah, 2023.

Alvin Gregorio

Quote from: murray dickinson on August 22, 2024, 05:37:18 AMWhat version is your file?  2020 and 2022 protested "no filter matching this file". 
I overlooked it initially also.  2023.  It's the first line in the original post.
Attached is Saved As... v2022
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

murray dickinson

Thanks for that Alvin.  WT, this mesh is riddled with selfintersection.  The facets pass through each other in quite a few places, so that like a Klein bottle or a Moebius strip, there isn't a logical inside and outside, which prevents "filling".  I exported it as .obj and used FreeCAD's mesh analysis to find that out.  I didn't spend a lot of time on it, but FC highlights the selfintersections, and they all appeared to be below the "upper" surface, which implies to me that they're artefacts of however the mesh was thickened for volume.  Maybe FreeCAD's repair tools are up to it, otherwise I think you've got a bit of work stripping the skirts and lower surface.  There are some undercuts in the skirt surfaces too, I don't know if they're part of the surveyed data or produced by the thickening, ie whether or not you'll want to preserve that detail. 

Alvin Gregorio

Quote from: Wildturbo on August 21, 2024, 09:44:25 PMThe manual instructs to start with a solid or surface - is there such a thing as an ACIS surface (which seems to go against the logic of ACIS) or am I reading this incorrectly

Let's say you had a single Line.
Then you Extruded that Line or assigned Height to it in its properties.
And you had that 3D set to (ACIS) Solid.  (which essentially uses TurboCAD's ACIS engine to create the 3D aspect/object)

Technically, that surface object is a 3D ACIS object.

Select that seemingly-2D_now-3D object.  Explode it once.  Selection Info reports it as being an ACIS Solid.
 
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#5
Quote from: Wildturbo on August 21, 2024, 09:44:25 PMI have an engineering survey model ...

What are the holes in the within the initial surface object on Layer "S-TRIA SURVEY TC Surface"?
Is that truly representative of real-World?


You cannot view this attachment.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

murray dickinson

I'm guessing could be bodies of water?

Wildturbo

Sorry for the late replies.

Yes Alvin, the holes within the initial surface are either structures (the smaller shapes) or large stockpiles of material (larger shapes) which we will be removing prior to construction. There is a small track between the two stockpiles. Would it be better to fill in the holes? I will give that a try with the

Thanks for looking and explaining Murray. I am assuming the original surface (and subsequently SMESH) which the surveyors have provided is obviously fine, but when I use the Turbocad Modify>Surface Mesh>Solidfy command to create a SMESH object with depth, it is then causing the self intersection.

I am not really concerned with the lower surface, I wanted to make this landscape an ACIS solid and then subtract a rectangular prism to create a flat bottom with a known level above the world plane (or level zero as I think of it.)

Is there a better way to make this landscape an ACIS solid with a volume?
Turbocad 2023 Platinum and civil design 2023 plug in, both 64 bit.
Lenovo ThinkPad P16 Gen 1, 12th Gen Intel(R) Core(TM) i7-12850HX   2.10 GHz, 32 GB RAM

Wildturbo

Quote from: Alvin Gregorio on August 23, 2024, 06:14:20 PM
Quote from: Wildturbo on August 21, 2024, 09:44:25 PMThe manual instructs to start with a solid or surface - is there such a thing as an ACIS surface (which seems to go against the logic of ACIS) or am I reading this incorrectly

Let's say you had a single Line.
Then you Extruded that Line or assigned Height to it in its properties.
And you had that 3D set to (ACIS) Solid.  (which essentially uses TurboCAD's ACIS engine to create the 3D aspect/object)

Technically, that surface object is a 3D ACIS object.

Select that seemingly-2D_now-3D object.  Explode it once.  Selection Info reports it as being an ACIS Solid.
 


Thanks Alvin. So in the context of this particular issue and the Create Solid from Surface Tool, what "surface" does the tool refer to? If we use a simple rectangle, add a 3d thickness of 10m and then use the create surface from solid tool, it converts the "Object Type" from Polyline to ACIS Solid without any volume. So it is essentially hollowing out the solid. If I then use the Create Solid from Surface the "Object Type" remains as ACIS solid, but it then has volume. 3d slicing the objects confirms that the tool hollows out and then resolidifies ACIS objects. I am answering my own question here, but the term "Surface" confuses the user, and in fact it should be termed Create Solid from Hollow.

So for my particular issue, if I explode the surface to create a series of polylines, give some thickness and then add together, it may work, or just create a mess. I will give it a shot and report back.

The manual states that it will not work on a TC Surface;  and I do not seem to be able to get it to work on any object; say for instance a simple rectangle, 3d size of 10m, explode to ACIS solid
Turbocad 2023 Platinum and civil design 2023 plug in, both 64 bit.
Lenovo ThinkPad P16 Gen 1, 12th Gen Intel(R) Core(TM) i7-12850HX   2.10 GHz, 32 GB RAM

Wildturbo

Pursuing another train of thought, I do have the Civil Design Suite which enables a series of tools when there are triangles created by 3d polylines. For this situation, when I explode this surface it creates a series of 2d polyline triangles. Is there a way of creating 3d polylines from 2d polylines?
Turbocad 2023 Platinum and civil design 2023 plug in, both 64 bit.
Lenovo ThinkPad P16 Gen 1, 12th Gen Intel(R) Core(TM) i7-12850HX   2.10 GHz, 32 GB RAM

murray dickinson

#10
Yes, but your surface has 8K+ triangular polylines, so it's going to be a long-winded drag to do this: explode the surface down to triangles, then successively copy-and-move each by some Z displacement, say -10m for this file, then use TC's prism tool to loft each pair of triangles, then add each lofted prism to the assembly.  The advantage of the prism loft is that it finishes automatically, saving keystrokes.  The transformation recorder can be used to copy-and-move with one button for each pair, too, so I can imagine how these actions can be put together to automate the production of a manifold topographical model- except that I've got no idea how to script cycling through a selection set of triangles hands-off.   I'd do it with TC surfaces rather than solids because it would be faster and you would get the physics of your excavations, the volumes, by using intersected manifold TC surface volumes, keeping the originals, then solidifying only the intersected volumes to obtain their physics.
Perhaps Nikki would be able to script that with VBS in the macro recorder.....

Torfinn

You can make/ use a TC surface in CDS, attached show the result
I made the TC Surface from points and then selected only that, then open TC Coordinates and exported it to a *.txt file that i later imported in to TC again and adjusted ( take away what i did not wanted to see ) then i got the volume using the normal volume tool
Then used a a terrain modifer and made a hole in it and the volum also updated

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

murray dickinson

Kudos, Torfinn!  Too smart...

Wildturbo

Thanks for you help Torfinn, Unfortunately when Civil Design Suite imports and re-triangulates, it differs to a significant extent from the original survey model triangulation. I had tried this previously.

Autocad has the ability to convert 2d polylines to 3d, I was hoping TC had the same facility so there could be a direct replica of the model.
Turbocad 2023 Platinum and civil design 2023 plug in, both 64 bit.
Lenovo ThinkPad P16 Gen 1, 12th Gen Intel(R) Core(TM) i7-12850HX   2.10 GHz, 32 GB RAM

murray dickinson

TC can do that, but the thickened polylines/prisms are normal to the facet, not to Z axis, and they're discrete, still having to be aggregated.   Another problem that crops up is that a proportion of the facets' normals are often reversed, so their thickness must be given a negative value or they thicken "outwards".  Those considerations are not show stoppers, but your mesh has some undercuts, prominently around its perimeter, where they thicken in exaggerated angles that make the result pretty incoherent. 

drepp

Greetings all,
Any chance of getting the original drawing/design file from the Surveyor?  What seems to be missing is the project digital terrain model(s) from which the surface was derived.  Ideally having the survey points plus the DTM created from the survey points would give the best information and allow a new surface to be recreated.

Btw, I've had good success using QGIS (open source and free) to obtain an create terrain data (point clouds, contours) and base maps for use in TC.  Might be a alternative if the original survey files can't be had.

 

TC2024 Plat/23/21/20/19/LTE
Win 11, Quadro P4000

Wildturbo

Thanks Murray - Rather than utilising the SMESH version, I am suggesting exploding the surface which produces a series of 2d polylines. My conception of Turbocad is that the exploded surface results in a series of 2d closed polylines with discrete WorkPlanes resulting in only x and y vertices within the Selection Info Vertices Property. The 3d polyline version would have vertices in relation to the World WorkPlane with distinct x,y and z coordinates. There does not appear to be an option to convert the 2d polylines so that their individual Workplanes were replaced by the World workplane while retaining the same z elevation. An analogy would be the Place on Workplane tool (while the world workplane was active) while retaining the same coordinates.

If there was some way of converting the 2d polylines to 3d polylines, Civil Design Suite (CDS) could then consider them as active triangles; I assume active triangle is the basis of CDS analysis algorithm. CDS has an option to create a solid from those active triangles (essentially closed 3d polylines) with the base relative to any "z" value which the user inputs.

Torfinn exploded the surface to polylines, exported the coordinates, reimported the coordinates and then assembled them as 3D polylines utilising a Utility of Civil Design Suite. Unfortunately that Utility adds extra triangles or leaves some out when reassembling. The result is a slight difference to the original, and due to integrity reasons (licensed surveyors model being modified) I can't use it.
Turbocad 2023 Platinum and civil design 2023 plug in, both 64 bit.
Lenovo ThinkPad P16 Gen 1, 12th Gen Intel(R) Core(TM) i7-12850HX   2.10 GHz, 32 GB RAM

Wildturbo

Quote from: drepp on August 27, 2024, 08:18:11 AMGreetings all,
Any chance of getting the original drawing/design file from the Surveyor?  What seems to be missing is the project digital terrain model(s) from which the surface was derived.  Ideally having the survey points plus the DTM created from the survey points would give the best information and allow a new surface to be recreated.

Btw, I've had good success using QGIS (open source and free) to obtain an create terrain data (point clouds, contours) and base maps for use in TC.  Might be a alternative if the original survey files can't be had.

Hi - I have the original model and data points. The surface in my file is the surveyors assigned DTM (digital terrain model.) Licensed surveyors when carrying out topographic surveys (or detailed pre design engineering surveys) will pick up distinct features to ensure as accurate a Digital Terrain Model as possible. With large earthworks projects and in particular the resurfacing of large flat hardstand areas where quantities of materials quickly add up, the more accurate their pick up the better the resulting model. Their software (in Australia, usually 12D Model) carry's out the triangulation and subsequent DTM. For integrity purposes, once the Licensed surveyor produces the DTM we cant alter it. Unfortunately it is not a new surface I require, but modifying the existing surface to create a solid with volume.
Turbocad 2023 Platinum and civil design 2023 plug in, both 64 bit.
Lenovo ThinkPad P16 Gen 1, 12th Gen Intel(R) Core(TM) i7-12850HX   2.10 GHz, 32 GB RAM

Torfinn

Quote from: Wildturbo on August 27, 2024, 08:09:34 PM""
Torfinn exploded the surface to polylines, exported the coordinates, reimported the coordinates and then assembled them as 3D polylines utilising a Utility of Civil Design Suite. Unfortunately that Utility adds extra triangles or leaves some out when reassembling. The result is a slight difference to the original, and due to integrity reasons (licensed surveyors model being modified) I can't use it.


Not exactly like that Wildturbo, i used a point cloud file in CDS to make the triangles, the file i always use for testing CDS, then made it to Surface in CDS, after that i  i selected it and got the coordinates from the TC coordinates and saved that as a txt file, that i later imported like a Terrain from TC's architect tool, and added a Terrain Modifier on it

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

murray dickinson

I'm not able to try it until tonight, grandkid-minding duty as I peer and peck, but I read OpenSCAD's mesh thickening being able to do this, OpenSCAD's manual says it thickens by default facet normal, but also vector or axis.

murray dickinson

#20
Here's a method in TC that's surprisingly quick and easy.  WT, this mesh has 20 holes in it, which makes the thing a PITA to work with, so I saved it as .obj and used FreeCAD's mesh repair tools to close them, it adds the missing facets and does it well.  I exported the repaired result as .obj and imported that into TC.  I converted the .obj mesh into solid (ACIS solid in 3D properties) and created a viewport of it from the top view, you'll see it in the attached file's paperspace.  I exploded the viewport into polylines and pick point hatched between border and mesh, then copy/paste-specialled the hatch into model space, created a region from that and exploded it to derive a perimeter outline of the mesh from the region.   The reintroduced hatch needed scaling to fit the mesh in model space, the scaling transform tool makes it trivial.  I extruded the perimeter polyline an arbitrary height and then used TC's extrude to face tool from the extrusion to the solidified mesh.  If the perimeter extrusion is inaccurate and falls outside or overlaps, the mesh's perimeter, the extrude to face doesn't work properly and caps at the mesh's highest point, which is what happened with this region outline, so I offset the polyline inwards 10mm, extruded that and tried again, successfully.  You can use the solid as is, with the physics available, but TC will also convert this to a TC surface happily, easy to share as .obj, stl or whatever.   Solid or mesh, you can excavate the holes out again to maintain the surveyor's file's "integrity", insofar as that term's applicable to missing faces.  It also occurs to me that you could use the mesh unrepaired (holes unfilled), hatch the holes in paperspace and use their outlines to make a compound profile for the initial extrusion, but I'll leave that for someone else to attempt.   
For interest's sake I scaled the repaired mesh and followed this procedure in your original file, the extrusion failed with the initial perimeter, succeeded with the offset 1mm inside the orginal, I think that's a reasonable tolerance.
It's a good idea to use 10-digit accuracy to help with tolerances for this.   I've convinced myself that scaling of the region outline introduces the tolerance needed for the perimeter outline.  If you traced the outline manually and carefully enough in model space, the snap tolerances might make the outline notionally perfect.  I'm not that assiduous.

Wildturbo

That is some response Murray and one that I will have to study and work my way through. Thank you for taking the time to carry out the process and then explain in detail.

regards

Mark.
Turbocad 2023 Platinum and civil design 2023 plug in, both 64 bit.
Lenovo ThinkPad P16 Gen 1, 12th Gen Intel(R) Core(TM) i7-12850HX   2.10 GHz, 32 GB RAM

murray dickinson

#22
Using a drafting palette view instead of the paperspace reinsertion, a border around it, hatch between and get the perimeter from that would shortcut it a little too.  I found the hatch perimeter result from drafting palette didn't need offsetting, which I think means using drafting palette must be more accurate, too.