Skip to content

Commit 1a9e7c9

Browse files
committed
Add project files.
1 parent 23b30f4 commit 1a9e7c9

File tree

5 files changed

+278
-0
lines changed

5 files changed

+278
-0
lines changed

Properties/AssemblyInfo.cs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("QuadHyp")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("QuadHyp")]
13+
[assembly: AssemblyCopyright("Copyright © 2023")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("62a5164f-96c4-426d-ac75-89b937f52998")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]

QuadHyp.csproj

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>8.0.30703</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{62A5164F-96C4-426D-AC75-89B937F52998}</ProjectGuid>
9+
<OutputType>Library</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>QuadHyp</RootNamespace>
12+
<AssemblyName>QuadHyp</AssemblyName>
13+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
14+
<FileAlignment>512</FileAlignment>
15+
<IsWebBootstrapper>false</IsWebBootstrapper>
16+
</PropertyGroup>
17+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\</OutputPath>
22+
<DefineConstants>DEBUG;TRACE</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<DebugType>pdbonly</DebugType>
28+
<Optimize>true</Optimize>
29+
<OutputPath>bin\</OutputPath>
30+
<DefineConstants>TRACE</DefineConstants>
31+
<ErrorReport>prompt</ErrorReport>
32+
<WarningLevel>4</WarningLevel>
33+
</PropertyGroup>
34+
<ItemGroup>
35+
<Reference Include="System" />
36+
<Reference Include="System.Core" />
37+
<Reference Include="System.Data" />
38+
<Reference Include="System.Xml" />
39+
<Reference Include="System.Xml.Linq" />
40+
<Reference Include="System.Drawing" />
41+
<Reference Include="System.Windows.Forms" />
42+
<Reference Include="RhinoCommon">
43+
<SpecificVersion>False</SpecificVersion>
44+
<HintPath>C:\Program Files\Rhino 6\System\rhinocommon.dll</HintPath>
45+
<Private>False</Private>
46+
</Reference>
47+
<Reference Include="Grasshopper">
48+
<SpecificVersion>False</SpecificVersion>
49+
<HintPath>C:\Program Files\Rhino 6\Plug-ins\Grasshopper\Grasshopper.dll</HintPath>
50+
<Private>False</Private>
51+
</Reference>
52+
<Reference Include="GH_IO">
53+
<SpecificVersion>False</SpecificVersion>
54+
<HintPath>C:\Program Files\Rhino 6\Plug-ins\Grasshopper\GH_IO.dll</HintPath>
55+
<Private>False</Private>
56+
</Reference>
57+
</ItemGroup>
58+
<ItemGroup>
59+
<Compile Include="QuadHypComponent.cs" />
60+
<Compile Include="QuadHypInfo.cs" />
61+
<Compile Include="Properties\AssemblyInfo.cs" />
62+
</ItemGroup>
63+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
64+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
65+
Other similar extension points exist, see Microsoft.Common.targets.
66+
<Target Name="BeforeBuild">
67+
</Target>
68+
<Target Name="AfterBuild">
69+
</Target>
70+
-->
71+
<PropertyGroup>
72+
<PostBuildEvent>Copy "$(TargetPath)" "$(TargetDir)$(ProjectName).gha"
73+
Erase "$(TargetPath)"</PostBuildEvent>
74+
</PropertyGroup>
75+
<PropertyGroup>
76+
<FallbackCulture>en-US</FallbackCulture>
77+
</PropertyGroup>
78+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
79+
<StartProgram>C:\Program Files\Rhino 6\System\Rhino.exe</StartProgram>
80+
<StartArguments>
81+
</StartArguments>
82+
<StartAction>Program</StartAction>
83+
</PropertyGroup>
84+
</Project>

QuadHyp.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.31613.86
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuadHyp", "QuadHyp.csproj", "{62A5164F-96C4-426D-AC75-89B937F52998}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{62A5164F-96C4-426D-AC75-89B937F52998}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{62A5164F-96C4-426D-AC75-89B937F52998}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{62A5164F-96C4-426D-AC75-89B937F52998}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{62A5164F-96C4-426D-AC75-89B937F52998}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {9DCF1C58-271D-4A37-A463-392BF7622BCB}
24+
EndGlobalSection
25+
EndGlobal

QuadHypComponent.cs

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
using Grasshopper.Kernel;
2+
using Rhino.Geometry;
3+
using System;
4+
using System.Collections.Generic;
5+
6+
// In order to load the result of this wizard, you will also need to
7+
// add the output bin/ folder of this project to the list of loaded
8+
// folder in Grasshopper.
9+
// You can use the _GrasshopperDeveloperSettings Rhino command for that.
10+
11+
namespace QuadHyp
12+
{
13+
public class QuadHypComponent : GH_Component
14+
{
15+
/// <summary>
16+
/// Each implementation of GH_Component must provide a public
17+
/// constructor without any arguments.
18+
/// Category represents the Tab in which the component will appear,
19+
/// Subcategory the panel. If you use non-existing tab or panel names,
20+
/// new tabs/panels will automatically be created.
21+
/// </summary>
22+
public QuadHypComponent()
23+
: base("QuadHyp", "QH",
24+
"Description",
25+
"Category", "Subcategory")
26+
{
27+
}
28+
29+
/// <summary>
30+
/// Registers all the input parameters for this component.
31+
/// </summary>
32+
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
33+
{
34+
}
35+
36+
/// <summary>
37+
/// Registers all the output parameters for this component.
38+
/// </summary>
39+
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
40+
{
41+
}
42+
43+
/// <summary>
44+
/// This is the method that actually does the work.
45+
/// </summary>
46+
/// <param name="DA">The DA object can be used to retrieve data from input parameters and
47+
/// to store data in output parameters.</param>
48+
protected override void SolveInstance(IGH_DataAccess DA)
49+
{
50+
}
51+
52+
/// <summary>
53+
/// Provides an Icon for every component that will be visible in the User Interface.
54+
/// Icons need to be 24x24 pixels.
55+
/// </summary>
56+
protected override System.Drawing.Bitmap Icon
57+
{
58+
get
59+
{
60+
// You can add image files to your project resources and access them like this:
61+
//return Resources.IconForThisComponent;
62+
return null;
63+
}
64+
}
65+
66+
/// <summary>
67+
/// Each component must have a unique Guid to identify it.
68+
/// It is vital this Guid doesn't change otherwise old ghx files
69+
/// that use the old ID will partially fail during loading.
70+
/// </summary>
71+
public override Guid ComponentGuid
72+
{
73+
get { return new Guid("67fbe529-82b6-4301-897b-db3541adaa5a"); }
74+
}
75+
}
76+
}

QuadHypInfo.cs

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
using Grasshopper.Kernel;
2+
using System;
3+
using System.Drawing;
4+
5+
namespace QuadHyp
6+
{
7+
public class QuadHypInfo : GH_AssemblyInfo
8+
{
9+
public override string Name
10+
{
11+
get
12+
{
13+
return "QuadHyp";
14+
}
15+
}
16+
public override Bitmap Icon
17+
{
18+
get
19+
{
20+
//Return a 24x24 pixel bitmap to represent this GHA library.
21+
return null;
22+
}
23+
}
24+
public override string Description
25+
{
26+
get
27+
{
28+
//Return a short string describing the purpose of this GHA library.
29+
return "";
30+
}
31+
}
32+
public override Guid Id
33+
{
34+
get
35+
{
36+
return new Guid("d0a20b9f-0207-4a64-be06-9f71b65243ad");
37+
}
38+
}
39+
40+
public override string AuthorName
41+
{
42+
get
43+
{
44+
//Return a string identifying you or your company.
45+
return "";
46+
}
47+
}
48+
public override string AuthorContact
49+
{
50+
get
51+
{
52+
//Return a string representing your preferred contact details.
53+
return "";
54+
}
55+
}
56+
}
57+
}

0 commit comments

Comments
 (0)