ODA Product: | ODA PRC SDK |
Sample Name: | OdPrcBrepBuilderEx |
Categories: | C++ / Advanced / Working with .prc entities / Android, iOS, macOS, Linux, Windows |
Source Code Location: | CommonApplications/Prc/Examples/OdPrcBrepBuilderEx |
A console sample application that creates a .prc file and adds boundary representation entities to it.
To run the OdPrcBrepBuilderEx
sample application, please do the following:
<PRC_DIR>\exe\<version>
<PRC_DIR>/bin/<version>
<PRC_DIR>
is a directory where you unpacked the PRC SDK archive.
To determine your <version>
parameter, please see the
appropriate section
in the Download ODA PRC SDK topic.
OdPrcBrepBuilderEx <example_case> <filename>
example_case
|
A symbolic name of the example case that represents the kind of B-Rep item to create.
Possible example case values supported by the sample application:
|
filename
|
Full path to the output .prc file. |
If the application executed properly, you will see the following console window:
If the input parameters are not specified or are specified incorrectly, the application prints the usage instructions:
The results of running each example case are represented below.
The application entry point (main()
function) is defined in the
OdPrcBrepBuilderEx.cpp
source code file.
The main()
function implements the following steps for creating boundary representation entities:
MyServices
class.
For additional information about this functionality, see the
ODA PRC SDK Sample Applications Reusable Files documentation.
OdPrcModuleName
; this module implements functionality
for manipulating .prc files.
createTopologyForBrep()
function is defined in the
PrcCreateTopologyHelper.cpp
and PrcCreateTopologyHelper.h
source code files,
which are located in the Prc/Examples/OdPrcCreate
folder).
OdPrcBrepBuilderExStart()
function which calls the appropriate function for creating retrieved B-Rep entities
and checks the result of B-Rep data creation.
If the entity was successfully created, write the created contents to the specified output file.
Work with Representation Entities
ODA PRC SDK Sample Applications
Copyright © 2002 – 2020. Open Design Alliance. All rights reserved.
|