Home
Reply
Visitor
Robert
Posts: 1

Modify surface of a solid

Hello!

I need to write a program (Visual C#) that makes the following happen:

1. Read a 3d geometry (SAT-File exported by e.g. Solidworks)

   +---------------+
   |               |
   |               |  (2d view of a 3d solid)
   |               |
   +---------------+

2. The top surface needs to be modified (given by a math function)

  
    /\
   +  \---/\--   --+
   |          \-/  |
   |               |  (2d view of the modified 3d solid)
   |               |
   +---------------+

3. Write new SAT-File

 

Maybe somebody can help me with some informations, tutorials, books, ...

 

Thanks in advance!

 

Kind regards,

Robert

 

 

 

 

 

 

 

Spatial Moderator
ybiyani
Posts: 223

Re: Modify surface of a solid

Hello Robert,

 

One way is to create a target surface (probably using laws) and then tweak the input face using api_tweak_faces http://doc.spatial.com/r19/qref/ACIS/html/group__LOPTWEAK.html#g92dbf5d2c2510df44d58bb8adce0686b 

 

To read and write sat file please review http://doc.spatial.com/r19/index.php/SAT_Save_and_Restore

 

Regards,

Yogesh

 

Spatial Moderator
ybiyani
Posts: 223

Re: Modify surface of a solid

Spatial Employee
RTadlock
Posts: 40

Re: Modify surface of a solid

Hi Robert,

 

You can also take a look at our application frame work called RADF to learn how to use C# and ACIS together.  There are code examples, tutorials, and out of the box, RADF can do basic modeling operations.  All you would need to do is work on the deformation of the cube based on Laws/tweak faces.  To find more information regarding RADF please see the documentation located here: http://doc.spatial.com/index.php/Portal:RADF

 

Thanks,

 

Robert Tadlock