Jump to content
Rizuan Razali

Image surface with Breps

Recommended Posts

Greeting everyone,

Currently, I am trying to do optimization of a hull form that consists of many surfaces. Then I put all the surfaces together using "breps". However, when I tried to generate an image surface at the source part, it looked like I had failed to put "Breps" as the source for the image surface. I have attached a picture below for your reference. What can I do to put that "Breps" as the source? I hope you guys can help me with this problem. Thank you.



Share this post

Link to post
Share on other sites

Hi Rizuan,

An image surface only accepts surfaces as input, no BReps.


You can have images of individual BRep patches (or their underlying, untrimmed NURBS surfaces, to be more precise) by setting "brep1.getSurfaces(0)" as a source. Obviously, 0 can be replaced by any other surface ID... Here is an example:


Note, that the underlying surface of the circular patch is actually rectangular (That's what BReps -- "boundary representation" -- are there for, after all).

Hope this sheds some light onto the topic. Why is it, that you wanted to create an image, anyway? Maybe there is a different way to get what you are after.

Best regards

Share this post

Link to post
Share on other sites

Hi, Mr. Heinrich,

First of all, thank you for your reply.

I wanted to create an image surface of my initial hull to do the optimization by using the Lankendby method in order to find the optimum hull form. However, this time the initial hull form consists of many surfaces, approximately 180 surfaces, as I attached below. It is complicated to do image surface 1 by 1 of the initial hull. 



I already tried your suggestion, but it also makes an image surface from a single surface, not all the surfaces that I put in breps.



best regards,


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...