Add source code for rhino 6.8 release

This commit is contained in:
Will Pearson
2018-09-10 17:39:40 -07:00
parent 881ade85ca
commit 9c3108a040
920 changed files with 692561 additions and 3 deletions

View File

@@ -0,0 +1,90 @@
#include "../opennurbs_public_examples.h"
#include "example_ud.h"
CExampleWriteUserData::CExampleWriteUserData()
{
m_sn = ++m__sn;
m_userdata_uuid = Id();
m_userdata_copycount = 1;
}
// {2532FB4A-DED9-4600-B6A4-1568504B66A5}
static const ON_UUID ExampleWriteUserData_Id =
{ 0x2532fb4a, 0xded9, 0x4600, { 0xb6, 0xa4, 0x15, 0x68, 0x50, 0x4b, 0x66, 0xa5 } };
CExampleWriteUserData::CExampleWriteUserData( const char* s)
{
m_sn = ++m__sn;
m_userdata_uuid = Id();
m_application_uuid = ExampleWriteUserData_Id;
m_userdata_copycount = 1;
m_str = s;
}
CExampleWriteUserData::CExampleWriteUserData(const CExampleWriteUserData& src) : ON_UserData(src), m_str(src.m_str)
{
m_sn = ++m__sn;
}
CExampleWriteUserData& CExampleWriteUserData::operator=(const CExampleWriteUserData& src)
{
if ( this != &src )
{
ON_UserData::operator=(src);
m_str = src.m_str;
}
return *this;
}
CExampleWriteUserData::~CExampleWriteUserData()
{
m_sn = -abs(m_sn);
}
void CExampleWriteUserData::Dump( ON_TextLog& text_log ) const
{
ON_UserData::Dump(text_log);
text_log.PushIndent();
const wchar_t* s = m_str;
if ( 0 == s )
s = L"";
text_log.Print("m_str: %ls\n",s);
text_log.Print("m_sn: %d\n",m_sn);
text_log.PopIndent();
}
bool CExampleWriteUserData::GetDescription( ON_wString& description )
{
description = L"example_write.exe user data";
return true;
}
bool CExampleWriteUserData::Archive() const
{
return true;
}
bool CExampleWriteUserData::Write(ON_BinaryArchive& file) const
{
return file.WriteString(m_str);
}
bool CExampleWriteUserData::Read(ON_BinaryArchive& file)
{
return file.ReadString(m_str);
}
int CExampleWriteUserData::m__sn = 0;
ON_OBJECT_IMPLEMENT(CExampleWriteUserData,ON_UserData,"DADD17C5-706D-44ea-9B13-7D9D2C56D085");
ON_UUID CExampleWriteUserData::Id()
{
// {6FC7CDF1-751E-4fa0-9D86-73E84D416DD7}
static const ON_UUID id =
{ 0x6fc7cdf1, 0x751e, 0x4fa0, { 0x9d, 0x86, 0x73, 0xe8, 0x4d, 0x41, 0x6d, 0xd7 } };
return id;
}

View File

@@ -0,0 +1,29 @@
#if !defined(OPENNURBS_EXAMPLE_UD_INC_)
#define OPENNURBS_EXAMPLE_UD_INC_
class CExampleWriteUserData : public ON_UserData
{
static int m__sn;
ON_OBJECT_DECLARE(CExampleWriteUserData);
public:
static ON_UUID Id();
CExampleWriteUserData();
virtual ~CExampleWriteUserData();
CExampleWriteUserData( const char* s);
CExampleWriteUserData(const CExampleWriteUserData& src);
CExampleWriteUserData& operator=(const CExampleWriteUserData& src);
void Dump( ON_TextLog& text_log ) const override;
bool GetDescription( ON_wString& description ) override;
bool Archive() const override;
bool Write(ON_BinaryArchive& file) const override;
bool Read(ON_BinaryArchive& file) override;
ON_wString m_str;
int m_sn;
};
#endif

View File

@@ -0,0 +1,273 @@
#include "../opennurbs_public_examples.h"
// This example demonstrates how to attach customized "user data"
// to any class derived from ON_Object. In particular, you can
// attach custom information to any piece of geometry in a 3DM
// file and have it persist in files, transform, and copy.
class MyUserData : public ON_UserData
{
ON_OBJECT_DECLARE(MyUserData);
public:
// Note well:
// 1) All constructors must initialize ON_UserData::m_userdata_uuid to
// the UUID that identifies this kind of user data.
// 2) All constructors must initialize ON_UserData::m_copy_count to
// 1 if the user data should be copied when the parent object is
// copied.
// For more details, see comments in the constructor code below.
MyUserData();
virtual ~MyUserData();
MyUserData(const MyUserData&);
MyUserData& operator=(const MyUserData&);
// In order to get your user data to persist in files, you must
// override ON_UserData::Archive(), ON_Object::Write() and
// ON_Object::Read()
bool Write(
ON_BinaryArchive&
) const override;
bool Read(
ON_BinaryArchive&
) override;
// Archive() must return true in order for user data to get saved
// in a file.
bool Archive() const override;
// You must override ON_UserData::GetDescription().
bool GetDescription( ON_wString& ) override;
// If your user data is attached to some type of ON_Geometry and you
// want the user data to be transformed when the parent ON_Geometry
// is transformed, then you must override ON_UserData::Transform().
//
// If you don't override ON_UserData::Transform(), then the net
// result of any transforms is stored in ON_UserData::m_userdata_xform.
// At appropriate times, you can inspect ON_UserData::m_userdata_xform
// and reset it to the identity after you've taken whatever actions
// you deem to be appropriate.
bool Transform( const ON_Xform& ) override;
// possible information you might want to attach.
int m_my_int;
ON_Line m_my_line;
ON_String m_my_string;
};
ON_OBJECT_IMPLEMENT( MyUserData, ON_UserData, "53114529-1CD7-4872-818E-311CB19101FA" );
// {D11E26D2-9A77-4a2f-AEC8-4498F2EABBA1}
static const ON_UUID my_application_id =
{ 0xd11e26d2, 0x9a77, 0x4a2f, { 0xae, 0xc8, 0x44, 0x98, 0xf2, 0xea, 0xbb, 0xa1 } };
MyUserData::MyUserData()
{
// Each kind of user data needs a uuid and your constructors MUST
// initialize ON_UserData::m_userdata_uuid with the value of this
// uuid. The value of ON_UserData::m_userdata_uuid uuid is used to
// identify the user data and is passed to ON_Object::GetUserData()
// when an application wants to access user data that has been
// attached to an object.
//
// In simple cases, the class UUID can be used as is shown below.
m_userdata_uuid = MyUserData::m_MyUserData_class_rtti.Uuid();
// In order for user data to be saved in 3dm files, it must have
// a non-nil application id.
m_application_uuid = my_application_id;
// If you want your user data to be copied when its parent ON_Object
// is copied, then your constructor must initialize
// ON_UserData::m_userdata_copycount to 1.
// By default, ON_UserData::m_userdata_copycount is zero and the
// user data is not copied. See the comments in the ON_UserData
// class definition for more details.
m_userdata_copycount = 1;
m_my_int = 0;
}
MyUserData::MyUserData(const MyUserData& src)
: ON_UserData(src) // critical - be sure to call base class copy constructor
{
// The base class copy constructor copies
// m_userdata_uuid, m_application_id, m_userdata_copycount,
// and m_userdata_xform. Then if m_userdata_copycount is
// not zero, it is incremented.
m_my_int = src.m_my_int;
m_my_line = src.m_my_line;
m_my_string = src.m_my_string;
}
MyUserData& MyUserData::operator=(const MyUserData& src)
{
if ( this != &src ) {
// critical - be sure to call base class operator=()
ON_UserData::operator=(src);
m_my_int = src.m_my_int;
m_my_line = src.m_my_line;
m_my_string = src.m_my_string;
}
return *this;
}
MyUserData::~MyUserData()
{
}
bool MyUserData::Archive() const
{
return true;
}
bool MyUserData::Read( ON_BinaryArchive& file )
{
bool rc = true;
if ( rc )
rc = file.ReadInt(&m_my_int);
if ( rc )
rc = file.ReadLine(m_my_line);
if ( rc )
rc = file.ReadString(m_my_string);
return rc;
}
bool MyUserData::Write( ON_BinaryArchive& file ) const
{
bool rc = true;
if ( rc )
rc = file.WriteInt(m_my_int);
if ( rc )
rc = file.WriteLine(m_my_line);
if ( rc )
rc = file.WriteString(m_my_string);
return rc;
}
bool MyUserData::GetDescription( ON_wString& s )
{
s = L"my user data with point, line, and string";
return true;
}
bool MyUserData::Transform( const ON_Xform& xform )
{
// Optional: call the ON_UserData::Transform() if you want the
// ON_UserData::m_userdata_xform value to be updated.
ON_UserData::Transform(xform);
// Transform any geometry you have in your class.
bool rc = m_my_line.Transform(xform);
return rc;
}
static ON_ModelGeometryComponent read_file(
const wchar_t* filename,
bool bManageGeometryObject
)
{
// see example_read.cpp for information about read 3dm files
// This code will only read the file created by write_file().
// This code should not be used as a model for reading general 3dm files.
ONX_Model model;
ON_BinaryFile archive(ON::archive_mode::read3dm, filename);
if (!model.IncrementalReadBegin(archive, true, 0, nullptr))
return ON_ModelGeometryComponent::Unset;
ON_ModelComponentReference mcr;
if (!model.IncrementalReadModelGeometry(archive, true, bManageGeometryObject, true, 0, mcr))
return ON_ModelGeometryComponent::Unset;
const ON_ModelGeometryComponent* mgc = ON_ModelGeometryComponent::Cast(mcr.ModelComponent());
if (nullptr == mgc)
return ON_ModelGeometryComponent::Unset;
return *mgc;
}
int main()
{
ON::Begin();
// uuid used to get user data via ON_Object::GetUserData()
const ON_UUID my_user_data_uuid = MyUserData::m_MyUserData_class_rtti.Uuid();
// We'll attach a MyUserData user data to a point. In general,
// you can attach user data to any class derived from ON_Object.
ON_Point point(0.0,0.0,0.0);
// User data must be created by a call to new
MyUserData* ud = new MyUserData();
ud->m_my_int = 1;
ud->m_my_line.from.Set(0.0,0.0,0.0);
ud->m_my_line.to.Set(1.0,1.0,1.0);
ud->m_my_string = "my user data";
// This attaches the user data to point. When the point is destroied,
// the user data will be destroyed.
//
point.AttachUserData(ud);
// Use ON_Object::GetUserData() to get user data.
MyUserData* original_ud = MyUserData::Cast( point.GetUserData( my_user_data_uuid ) );
printf("original_ud->m_userdata_copycount = %d\n",original_ud->m_userdata_copycount);
// When the point is copied, the user data will be copied if
// ud->m_userdata_copycount > 0.
//
ON_Point copy_of_point = point;
// Use ON_Object::GetUserData() to get user data.
MyUserData* copy_of_ud = MyUserData::Cast( copy_of_point.GetUserData( my_user_data_uuid ) );
if ( 0 == copy_of_ud )
printf("ON_UserData::m_copy_count must be > 0 for user data to be copied.\n");
else
printf("copy_of_ud->m_userdata_copycount = %d\n",copy_of_ud->m_userdata_copycount);
// When the point is transformed, the virtual ON_UserData::Transform()
// is called to transform the point.
// When the point is saved to a file, the virtual ON_Object::Write() is
// called to write the attached user data.
const wchar_t* filename = L"my_point_with_user_data.3dm";
ON_WriteOneObjectArchive(filename, point);
// When the point is read from a file, the virtual ON_Object::Read() is
// called to read the user data.
// If bManageGeometryObject is true, then the ON_ModelGeometryComponent destructor
// will delete point_from_file.
bool bManageGeometryObject = true;
ON_ModelGeometryComponent mgr = read_file( filename, bManageGeometryObject );
const ON_Geometry* point_from_file = mgr.Geometry(nullptr);
if ( nullptr != point_from_file )
{
// Use ON_Object::GetUserData() to get user data.
MyUserData* ud_from_file = MyUserData::Cast( point_from_file->GetUserData( my_user_data_uuid ) );
printf("ud_from_file->m_userdata_copycount = %d\n",ud_from_file->m_userdata_copycount);
if (false == bManageGeometryObject)
{
// caller must manage point_from_file;
delete const_cast<ON_Geometry*>(point_from_file);
}
}
ON::End();
return 0;
}

View File

@@ -0,0 +1,160 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{F6FC693F-2EDB-4DEC-936A-C15BE1195EC4}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>example_userdata</RootNamespace>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="..\opennurbs_msbuild.Cpp.props" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="..\opennurbs_msbuild.Cpp.props" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="..\opennurbs_msbuild.Cpp.props" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="..\opennurbs_msbuild.Cpp.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="..\examples.h" />
<ClInclude Include="..\examples_linking_pragmas.h" />
<ClInclude Include="example_ud.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="example_ud.cpp" />
<ClCompile Include="example_userdata.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="example_ud.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\examples_linking_pragmas.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\examples.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="example_ud.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="example_userdata.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>

View File

@@ -0,0 +1,280 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
1D41D1B41EE0913600EB94A6 /* example_ud.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1D41D1B11EE0913600EB94A6 /* example_ud.cpp */; };
1D41D1B51EE0913600EB94A6 /* example_userdata.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1D41D1B31EE0913600EB94A6 /* example_userdata.cpp */; };
1D41D1D41EE0A01200EB94A6 /* libopennurbs_public.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D41D1D31EE0A01200EB94A6 /* libopennurbs_public.a */; };
1D41D1D61EE0A01700EB94A6 /* libopennurbs_public_freetype.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D41D1D51EE0A01700EB94A6 /* libopennurbs_public_freetype.a */; };
1D41D1D81EE0A01B00EB94A6 /* libopennurbs_public_zlib.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D41D1D71EE0A01B00EB94A6 /* libopennurbs_public_zlib.a */; };
1D77E3911EE20FDC00994B0B /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D77E3901EE20FDC00994B0B /* Cocoa.framework */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
1D41D1A11EE08F7100EB94A6 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = /usr/share/man/man1/;
dstSubfolderSpec = 0;
files = (
);
runOnlyForDeploymentPostprocessing = 1;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
1D41D1A31EE08F7100EB94A6 /* example_userdata */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = example_userdata; sourceTree = BUILT_PRODUCTS_DIR; };
1D41D1B11EE0913600EB94A6 /* example_ud.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = example_ud.cpp; sourceTree = "<group>"; };
1D41D1B21EE0913600EB94A6 /* example_ud.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = example_ud.h; sourceTree = "<group>"; };
1D41D1B31EE0913600EB94A6 /* example_userdata.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = example_userdata.cpp; sourceTree = "<group>"; };
1D41D1D31EE0A01200EB94A6 /* libopennurbs_public.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libopennurbs_public.a; path = ../build/Debug/libopennurbs_public.a; sourceTree = "<group>"; };
1D41D1D51EE0A01700EB94A6 /* libopennurbs_public_freetype.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libopennurbs_public_freetype.a; path = ../freetype263/build/Debug/libopennurbs_public_freetype.a; sourceTree = "<group>"; };
1D41D1D71EE0A01B00EB94A6 /* libopennurbs_public_zlib.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libopennurbs_public_zlib.a; path = ../zlib/build/Debug/libopennurbs_public_zlib.a; sourceTree = "<group>"; };
1D77E3901EE20FDC00994B0B /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
1D41D1A01EE08F7100EB94A6 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
1D77E3911EE20FDC00994B0B /* Cocoa.framework in Frameworks */,
1D41D1D81EE0A01B00EB94A6 /* libopennurbs_public_zlib.a in Frameworks */,
1D41D1D61EE0A01700EB94A6 /* libopennurbs_public_freetype.a in Frameworks */,
1D41D1D41EE0A01200EB94A6 /* libopennurbs_public.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
1D41D19A1EE08F7100EB94A6 = {
isa = PBXGroup;
children = (
1D41D1B11EE0913600EB94A6 /* example_ud.cpp */,
1D41D1B21EE0913600EB94A6 /* example_ud.h */,
1D41D1B31EE0913600EB94A6 /* example_userdata.cpp */,
1D41D1A41EE08F7100EB94A6 /* Products */,
1D41D1D21EE0A01100EB94A6 /* Frameworks */,
);
sourceTree = "<group>";
};
1D41D1A41EE08F7100EB94A6 /* Products */ = {
isa = PBXGroup;
children = (
1D41D1A31EE08F7100EB94A6 /* example_userdata */,
);
name = Products;
sourceTree = "<group>";
};
1D41D1D21EE0A01100EB94A6 /* Frameworks */ = {
isa = PBXGroup;
children = (
1D77E3901EE20FDC00994B0B /* Cocoa.framework */,
1D41D1D71EE0A01B00EB94A6 /* libopennurbs_public_zlib.a */,
1D41D1D51EE0A01700EB94A6 /* libopennurbs_public_freetype.a */,
1D41D1D31EE0A01200EB94A6 /* libopennurbs_public.a */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
1D41D1A21EE08F7100EB94A6 /* example_userdata */ = {
isa = PBXNativeTarget;
buildConfigurationList = 1D41D1AA1EE08F7100EB94A6 /* Build configuration list for PBXNativeTarget "example_userdata" */;
buildPhases = (
1D41D19F1EE08F7100EB94A6 /* Sources */,
1D41D1A01EE08F7100EB94A6 /* Frameworks */,
1D41D1A11EE08F7100EB94A6 /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = example_userdata;
productName = example_userdata;
productReference = 1D41D1A31EE08F7100EB94A6 /* example_userdata */;
productType = "com.apple.product-type.tool";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
1D41D19B1EE08F7100EB94A6 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0830;
ORGANIZATIONNAME = "OpenNURBS 3dm File IO Toolkit";
TargetAttributes = {
1D41D1A21EE08F7100EB94A6 = {
CreatedOnToolsVersion = 8.3.2;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 1D41D19E1EE08F7100EB94A6 /* Build configuration list for PBXProject "example_userdata" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 1D41D19A1EE08F7100EB94A6;
productRefGroup = 1D41D1A41EE08F7100EB94A6 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
1D41D1A21EE08F7100EB94A6 /* example_userdata */,
);
};
/* End PBXProject section */
/* Begin PBXSourcesBuildPhase section */
1D41D19F1EE08F7100EB94A6 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1D41D1B41EE0913600EB94A6 /* example_ud.cpp in Sources */,
1D41D1B51EE0913600EB94A6 /* example_userdata.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
1D41D1A81EE08F7100EB94A6 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.12;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
};
name = Debug;
};
1D41D1A91EE08F7100EB94A6 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.12;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
};
name = Release;
};
1D41D1AB1EE08F7100EB94A6 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
GCC_INPUT_FILETYPE = sourcecode.cpp.objcpp;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
1D41D1AC1EE08F7100EB94A6 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
GCC_INPUT_FILETYPE = sourcecode.cpp.objcpp;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
1D41D19E1EE08F7100EB94A6 /* Build configuration list for PBXProject "example_userdata" */ = {
isa = XCConfigurationList;
buildConfigurations = (
1D41D1A81EE08F7100EB94A6 /* Debug */,
1D41D1A91EE08F7100EB94A6 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
1D41D1AA1EE08F7100EB94A6 /* Build configuration list for PBXNativeTarget "example_userdata" */ = {
isa = XCConfigurationList;
buildConfigurations = (
1D41D1AB1EE08F7100EB94A6 /* Debug */,
1D41D1AC1EE08F7100EB94A6 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 1D41D19B1EE08F7100EB94A6 /* Project object */;
}

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:example_userdata.xcodeproj">
</FileRef>
</Workspace>