Extrusion of solid

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
MikeD
Posts: 16
Joined: 27 Jan 2015, 17:45

Extrusion of solid

Post by MikeD » 02 Feb 2015, 18:24

Hi,

I have a squareSolid:TsgDXFSolid that I want to extrude.
If I use...

Code: Select all

squareSolid.Point := MakeFPoint(0, 0, 0);
squareSolid.Point1 := MakeFPoint(10, 0, 0);
squareSolid.Point2 := MakeFPoint(10, 10, 0);
squareSolid.Point3 := MakeFPoint(0, 10, 0)

squareSolid.Extrusion := MakeFPoint(0, 0, 10);
...nothing happens. If I use...

Code: Select all

squareSolid.Extrusion := MakeFPoint(0, 10, 10);
...the solid looks like it has been rotated but there is no extrusion.
Am I missing something?

-Mike

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Extrusion of solid

Post by support » 02 Feb 2015, 20:29

Hello Mike,

The extrusion direction is the normal vector of the plane which contains the entity. The default extrusion direction value is (0, 0, 1). Maybe you confused it with the extrusion of solid 3D models?


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

MikeD
Posts: 16
Joined: 27 Jan 2015, 17:45

Re: Extrusion of solid

Post by MikeD » 03 Feb 2015, 09:42

Ah I see.
Yes in that case I mixed it up with the extrusion function of 3D models.

Is there a way to extrude an object / entity or would I have to manually realize it?

-Mike

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Extrusion of solid

Post by support » 05 Feb 2015, 14:09

Hello Mike,

If you mean the extrusion of some 2D object which results in solid 3D model (for example, a cylinder is a result of extrusion of circle), it is not possible. The Extrusion property in DXF/DWG defines a direction of the normal vector of the plane which contains the entity.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply