Summary of the invention
In order to overcome problems of the prior art, the disclosure provides a kind of drafting side of transparent body refracting interface line
Method, device, medium and electronic equipment.
According to the first aspect of the embodiments of the present disclosure, the disclosure provides a kind of method for drafting of transparent body refracting interface line,
Include:
Obtain glancing incidence light, the corresponding refracted light of the glancing incidence light and the glancing incidence light and
The first included angle A between the refracted light;
According to first included angle A, determine that n incidence angle B, the n are the integer more than or equal to 1;
The selection target incidence angle from the n incidence angle B;
According to the target incident angle and the refracted light, target refractive parting line is drawn.
Optionally, described according to first included angle A, determine n incidence angle B, comprising:
According to first included angle A, the incident angle range of the glancing incidence light is determined;
N incidence angle B is extracted out of described incident angle range, wherein the n incidence angle B according to sorting from small to large
The sequence formed afterwards is arithmetic sequence.
Optionally, the selection target incidence angle from the n incidence angle B, comprising:
Calculate separately the corresponding refracting condition value of each incidence angle B in the n incidence angle B;
The corresponding incidence angle B of refracting condition value the smallest in the n refracting condition values is determined as target incident angle.
Optionally, the refracting condition value is | N*sinB-sin (A+B) |, wherein N is the refraction of preset translucent material
Rate.
Optionally, described according to the target incident angle and the refracted light, draw target refractive parting line, comprising:
According to the target incident angle, target direction vector is determined;
Using the starting point of the refracted light as starting point, along the line segment of the target direction vector-drawn preset length, and will
The line segment is determined as target refractive parting line.
Optionally, described according to the target incident angle and the refracted light, after drawing target refractive parting line, also
Include:
According to preset translucent material refractive index, the glancing incidence light is obtained after the target refractive parting line
Target refractive light;
When the second angle between the refracted light and the target refractive light is greater than predetermined angle threshold value, according to
Preset step-length increases the n;
From described according to first included angle A, the step of determining n incidence angle B, starts to execute, and draws described after increasing
The corresponding target refractive parting line of n, until second angle is less than or equal to the predetermined angle threshold value.
According to the second aspect of an embodiment of the present disclosure, the disclosure provides a kind of drawing apparatus of transparent body refracting interface line,
Include:
First obtains module, for obtaining glancing incidence light, the corresponding refracted light of the glancing incidence light and institute
State the first included angle A between glancing incidence light and the refracted light;
Determining module, first included angle A for being got according to the first acquisition module, determines n incidence angle
B, the n are the integer more than or equal to 1;
Selecting module, for the selection target incidence angle from the n incidence angle B that the determining module is determined;
Drafting module, the target incident angle and described first for being selected according to the selecting module obtain module
The refracted light got draws target refractive parting line.
Optionally, described device further include:
Second obtains module, for, according to the target incident angle and the refracted light, drawing in the drafting module
After target refractive parting line, according to preset translucent material refractive index, the glancing incidence light is obtained by the drafting
Target refractive light after the target refractive parting line that module is drawn out;
Quantity adjusts module, and the refracted light and described second for getting when the first acquisition module obtains
When the second angle between the target refractive light that module is got is greater than predetermined angle threshold value, increase according to preset step-length
The n;
Trigger module, first angle got for triggering the determining module according to the first acquisition module
A determines n incidence angle B, until second angle is less than or equal to the predetermined angle threshold value.
According to the third aspect of an embodiment of the present disclosure, the disclosure provides a kind of computer readable storage medium, stores thereon
There is computer program, transparent body refracting interface line provided by disclosure first aspect is realized when which is executed by processor
Method for drafting.
According to a fourth aspect of embodiments of the present disclosure, the disclosure provides a kind of electronic equipment, comprising:
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize that disclosure first aspect is mentioned
The method for drafting of the transparent body refracting interface line of confession.
In the above-mentioned technical solutions, after getting glancing incidence light, the corresponding refracted light of glancing incidence light,
The first included angle A that can first between the glancing incidence light and corresponding refracted light;Then, according to first included angle A, n is determined
A incidence angle B, and the selection target incidence angle from the n incidence angle B;Finally, according to the target incident angle and above-mentioned refraction light
Line draws target refractive parting line.In this manner it is achieved that in condensation photovoltaic lens design transparent body refracting interface drafting, no
But drafting is high-efficient, and can guarantee the design accuracy of transparent body refractile body interface angle.
Other feature and advantage of the disclosure will the following detailed description will be given in the detailed implementation section.
Specific embodiment
It is described in detail below in conjunction with specific embodiment of the attached drawing to the disclosure.It should be understood that this place is retouched
The specific embodiment stated is only used for describing and explaining the disclosure, is not limited to the disclosure.
Fig. 1 is a kind of flow chart of the method for drafting of transparent body refracting interface line shown according to an exemplary embodiment.
As shown in Figure 1, this method may comprise steps of.
In a step 101, glancing incidence light, the corresponding refracted light of glancing incidence light and glancing incidence are obtained
The first included angle A between light and corresponding refracted light.
In the disclosure, it is defeated to can be user for above-mentioned glancing incidence light refracted light corresponding with the glancing incidence light
Enter, and prestore, also, above-mentioned glancing incidence light refracted light corresponding with the glancing incidence light can be one
It is right, it is also possible to multipair, is not especially limited in the disclosure.
After getting glancing incidence light refracted light corresponding with the glancing incidence light, available the two
Between the first included angle A (as shown in Figure 2).
In a step 102, according to the first included angle A, n incidence angle B is determined.
In the disclosure, n is the integer more than or equal to 1.Glancing incidence light and the water are got in above-mentioned steps 101
After the first included angle A between the corresponding refracted light of flat incident ray, n incidence angle can be determined according to first included angle A
B.In one embodiment, n incidence angle B can be determined by step 1021 shown in Fig. 3 and step 1022.
In step 1021, according to the first included angle A, the incident angle range of glancing incidence light is determined.
In the disclosure, the lower limit value of the incident angle range of above-mentioned glancing incidence light, upper limit value can be respectively according to
The setting of one included angle A.
In one embodiment, the lower limit value of the incidence angle of above-mentioned glancing incidence light can be above-mentioned first included angle A
The first presupposition multiple, the upper limit value of the incidence angle of above-mentioned glancing incidence light can be the second default of above-mentioned first included angle A
Multiple, that is, the incident angle range of above-mentioned glancing incidence light is [the first presupposition multiple of A*, the second presupposition multiple of A*].Wherein, on
The first presupposition multiple is stated greater than 0 and less than 1, above-mentioned second presupposition multiple is greater than 1 and is less than or equal toFurthermore, it is desirable to
Illustrate, above-mentioned first presupposition multiple, the second presupposition multiple can be value set by user, be also possible to the experience of default
Value, is not especially limited in the disclosure.
In another embodiment, the lower limit value of the incident angle range of above-mentioned glancing incidence light can be above-mentioned first
The difference of included angle A and the first predetermined angle, the upper limit value of the incident angle range of above-mentioned glancing incidence light be above-mentioned first included angle A with
The sum of second predetermined angle, that is, the incident angle range of above-mentioned glancing incidence light is that [the first predetermined angle of A-, A+ second are default
Angle].Furthermore, it is desirable to explanation, above-mentioned first predetermined angle, the second predetermined angle can be value set by user, it can also
To be the empirical value of default, for example, the first predetermined angle is 5 °, the second predetermined angle is 15 °, that is, above-mentioned glancing incidence light
Incident angle range be [A-5 °, A+15 °], also, the first predetermined angle and the second predetermined angle can be equal, can also not
Deng being not especially limited in the disclosure.
In step 1022, n incidence angle B is extracted out of incident angle range of the glancing incidence light.
In the disclosure, above-mentioned n incidence angle B can be arithmetic sequence according to the sequence formed after sorting from small to large,
That is, the difference between two incidence angle B of arbitrary neighborhood is equal after n incidence angle B according to sorting from small to large.
In addition, it is necessary to which explanation, the number n of the incidence angle B of above-mentioned extraction can be set by user, it is also possible to write from memory
Recognize, for example, n=20, is not especially limited in the disclosure.
Return to Fig. 1, in step 103, the selection target incidence angle from n incidence angle B.
In the disclosure, it after through the above steps 102 determine n incidence angle B, can be sieved from the n incidence angle B
Select target incident angle.In one embodiment, it can be filtered out by step 1031 shown in Fig. 4 and step 1032
Target incident angle.
In step 1031, the corresponding refracting condition value of each incidence angle B in n incidence angle B is calculated separately.
In step 1032, the corresponding incidence angle B of refracting condition value the smallest in n refracting condition value is determined as target
Incidence angle.
In the disclosure, above-mentioned refracting condition value can be | N*sinB-sin (A+B) |, wherein N is preset light transmission material
Expect refractive index.As shown in Figure 2, the incidence angle of glancing incidence light is B, and corresponding refraction angle is A+B, it is seen then that n incidence angle
In B, makeWith preset translucent material refractive index N closer incidence angle B (it is, making | N*sinB-
Sin (A+B) | the smallest incidence angle B) it is the incidence angle for being best suitable for the law of refraction, at this point it is possible to as target incident
Angle.Based on this, after above-mentioned steps 102 determine n incidence angle B, it is corresponding that each incidence angle B can be calculated separately | N*sinB-
Sin (A+B) |, later, can be corresponding by each incidence angle B | N*sinB-sin (A+B) | it is arranged according to sequence from big to small
Sequence, the smallest to determine | N*sinB-sin (A+B) | corresponding incidence angle B, and this is the smallest | N*sinB-sin (A+B) |
Corresponding incidence angle B is determined as target incident angle C.
At step 104, according to target incident angle and the corresponding refracted light of glancing incidence light, target refractive circle is drawn
Upper thread.
It, can be in conjunction with the glancing incidence light that above-mentioned steps 101 are got after above-mentioned steps 103 determine target incident angle
Line corresponding refracted light draws target refractive parting line.Specifically, step 1041 shown in Fig. 5 and step can be passed through
Rapid 1042 draw target refractive parting line.
In step 1041, according to target incident angle, target direction vector is determined.
In the disclosure, it after above-mentioned steps 103 determine target incident angle C, can obtain in the following manner
State target direction vector: as shown in Figure 6, firstly, obtain vertically upward primary vector (for example, vertically upward first to
Measure (0,1,0)), later, which is rotated clockwise into above-mentioned target incident angle C, obtains secondary vector,
And the secondary vector is determined as target direction vector.
In step 1042, using the starting point of the corresponding refracted light of glancing incidence light as starting point, along target direction vector
The line segment of preset length is drawn, and the line segment is determined as target refractive parting line.
In the disclosure, it after above-mentioned steps 1041 determine target direction vector, can be got with above-mentioned steps 101
The corresponding refracted light of glancing incidence light starting point be starting point, drawn along the target direction vector that above-mentioned steps 1041 are determined
The line segment of preset length processed to get arrive target refractive parting line (as shown in Figure 7).
In addition, it is necessary to which explanation, above-mentioned preset length can be value set by user, it is also possible to the experience of default
Value, is not especially limited in the disclosure.
In the above-mentioned technical solutions, after getting glancing incidence light, the corresponding refracted light of glancing incidence light,
The first included angle A that can first between the glancing incidence light and corresponding refracted light;Then, according to first included angle A, n is determined
A incidence angle B, and the selection target incidence angle from the n incidence angle B;Finally, according to the target incident angle and above-mentioned refraction light
Line draws target refractive parting line.In this manner it is achieved that in condensation photovoltaic lens design transparent body refracting interface drafting, no
But drafting is high-efficient, and can guarantee the design accuracy of transparent body refractile body interface angle.
In addition, the number of the number n of the incidence angle B determined in above-mentioned steps 102 directly affects above-mentioned target incident angle
Computational accuracy, and then influence the design accuracy of above-mentioned target refractive body interface line.Therefore, it is drawn out in above-mentioned steps 104
After target refractive body interface line, it can be calibrated, and when the design accuracy of the target refractive body interface line is lower, be led to
The number n of increase incidence angle B is crossed to promote the precision.Specifically, step 105 as shown in Figure 8~step can be passed through
107 realize.
In step 105, it according to preset translucent material refractive index, obtains glancing incidence light and passes through target refractive interface
Target refractive light after line.
In step 106, determine the second folder between the corresponding refracted light of glancing incidence light and target refractive light
Whether angle is greater than predetermined angle threshold value.
It in the disclosure, can be according to preset light transmission material after above-mentioned steps 104 draw out target refractive body interface line
Refractive index N is expected to verify to the design accuracy of the target refractive body interface line.It specifically, can be according to above-mentioned preset
The glancing incidence light that translucent material refractive index N and above-mentioned steps 101 are got determines the glancing incidence light by above-mentioned
Target refractive light after the target refractive parting line that step 104 is drawn;Later, the water got in above-mentioned steps 101 is determined
The second angle between the flat corresponding refracted light of incident ray and the target refractive light;Then, according to second angle come
Determine whether the design accuracy for the target refractive body interface drawn out in above-mentioned steps 104 meets user demand: when above-mentioned second
When angle is greater than predetermined angle threshold value, the design accuracy for the target refractive body interface drawn out in above-mentioned steps 104 can be determined
Be unable to satisfy user demand, at this point it is possible to increase in above-mentioned steps 102 it needs to be determined that the number n of incidence angle B (execute following
Step 107);When above-mentioned second angle is less than or equal to above-mentioned predetermined angle threshold value, it can determine and be drawn in above-mentioned steps 104
The design accuracy of target refractive body interface out can satisfy user demand, at this point, not executing any operation, that is, terminate.
In step 107, increase n according to preset step-length.
In the disclosure, increase above-mentioned steps 102 it needs to be determined that incidence angle B number n after, above-mentioned step can be returned
Rapid 102 continue to execute, to promote the design accuracy of target refractive body interface line, until above-mentioned second angle is less than or equal to above-mentioned
Until predetermined angle threshold value.
In addition, it is necessary to explanation, above-mentioned predetermined angle threshold value, above-mentioned preset step-length can be value set by user,
The empirical value that can be default, is not especially limited in the disclosure.
Fig. 9 is a kind of block diagram of the drawing apparatus of transparent body refracting interface line shown according to an exemplary embodiment.Ginseng
According to Fig. 9, which may include: the first acquisition module 901, for obtaining glancing incidence light, the glancing incidence light
The first included angle A between corresponding refracted light and the glancing incidence light and the refracted light;Determining module 902 is used
In first included angle A got according to the first acquisition module 901, determine that n incidence angle B, the n are to be greater than or wait
In 1 integer;Selecting module 903, for from the n incidence angle B that the determining module 902 is determined selection target enter
Firing angle;Drafting module 904, the target incident angle and described first for being selected according to the selecting module 903 obtain
The refracted light that module 901 is got draws target refractive parting line.
Optionally, the determining module 902 includes: the first determining submodule, for obtaining module 901 according to described first
First included angle A got, determines the incident angle range of the glancing incidence light;Submodule is extracted, is used for from described
First determines in the incident angle range that submodule is determined and extracts n incidence angle B, wherein the n incidence angle B according to
The sequence formed after sorting from small to large is arithmetic sequence.
Optionally, the selecting module 903 includes: computational submodule, is determined for calculating separately the determining module 902
The corresponding refracting condition value of each incidence angle B in the n incidence angle B out;Second determines submodule, is used for the calculating
The corresponding incidence angle B of the smallest refracting condition value is determined as target incident in the submodule calculated n refracting condition values
Angle.
Optionally, the refracting condition value is | N*sinB-sin (A+B) |, wherein N is the refraction of preset translucent material
Rate.
Optionally, the drafting module 904 includes: that third determines submodule, for being selected according to the selecting module 903
The target incident angle out, determines target direction vector;Rendering submodule is obtained for obtaining module 901 with described first
The starting point of the refracted light arrived is starting point, determines the target direction vector-drawn that submodule is determined along the third
The line segment of preset length, and the line segment is determined as target refractive parting line.
Figure 10 is a kind of block diagram of the drawing apparatus of the transparent body refracting interface line shown according to another exemplary embodiment.
Referring to Fig.1 0, above-mentioned apparatus 900 can also include: the second acquisition module 905, in the drafting module according to the target
Incidence angle and the refracted light, after drawing target refractive parting line, according to preset translucent material refractive index, described in acquisition
The target folding that the glancing incidence light that first acquisition module 901 is got is drawn out by the drafting module 904
Target refractive light after the upper thread of firing area;Quantity adjusts module 906, the institute for getting when the first acquisition module 901
The second angle between the target refractive light that refracted light and the second acquisition module 905 are got is stated greater than default
When angle threshold, increase the n according to preset step-length;Trigger module 907, for triggering the determining module 902 according to described
First included angle A that first acquisition module 901 is got, determines n incidence angle B, until second angle is less than or waits
Until the predetermined angle threshold value.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
The disclosure also provides a kind of computer readable storage medium, is stored thereon with computer program, and the program is processed
The step of device realizes the method for drafting of the above-mentioned transparent body refracting interface line when executing.
Figure 11 is the block diagram of a kind of electronic equipment 1100 shown according to an exemplary embodiment.As shown in figure 11, the electricity
Sub- equipment 1100 may include: processor 1101, memory 1102.The electronic equipment 1100 can also include multimedia component
1103, one or more of input/output (I/O) interface 1104 and communication component 1105.
Wherein, processor 1101 is used to control the integrated operation of the electronic equipment 1100, to complete above-mentioned transparent body folding
All or part of the steps in the method for drafting of firing area upper thread.Memory 1102 is for storing various types of data to support
The operation of the electronic equipment 1100, these data for example may include any application for operating on the electronic equipment 1100
The instruction of program or method and the relevant data of application program, for example, contact data, the message of transmitting-receiving, picture, audio,
Video etc..The memory 1102 can be real by any kind of volatibility or non-volatile memory device or their combination
It is existing, such as static random access memory (Static Random Access Memory, abbreviation SRAM), electric erasable can be compiled
Journey read-only memory (Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM),
Erasable Programmable Read Only Memory EPROM (Erasable Programmable Read-Only Memory, abbreviation EPROM), can compile
Journey read-only memory (Programmable Read-Only Memory, abbreviation PROM), read-only memory (Read-Only
Memory, abbreviation ROM), magnetic memory, flash memory, disk or CD.Multimedia component 1103 may include screen and sound
Frequency component.Wherein screen for example can be touch screen, and audio component is used for output and/or input audio signal.For example, audio group
Part may include a microphone, and microphone is for receiving external audio signal.The received audio signal can be further
It is stored in memory 1102 or is sent by communication component 1105.Audio component further includes at least one loudspeaker, for exporting
Audio signal.I/O interface 1104 provides interface between processor 1101 and other interface modules, other above-mentioned interface modules can
To be keyboard, mouse, button etc..These buttons can be virtual push button or entity button.Communication component 1105 is used for the electricity
Wired or wireless communication is carried out between sub- equipment 1100 and other equipment.Wireless communication, such as Wi-Fi, bluetooth, near-field communication
(Near Field Communication, abbreviation NFC), 2G, 3G or 4G or they one or more of combination, therefore
The corresponding communication component 1105 may include: Wi-Fi module, bluetooth module, NFC module.
In one exemplary embodiment, electronic equipment 1100 can be by one or more application specific integrated circuit
(Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital
Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device,
Abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field programmable gate array
(Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics member
Part is realized, for executing the method for drafting of above-mentioned transparent body refracting interface line.
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should
The step of method for drafting of above-mentioned transparent body refracting interface line is realized when program instruction is executed by processor.For example, the calculating
Machine readable storage medium storing program for executing can be the above-mentioned memory 1102 including program instruction, and above procedure instruction can be by electronic equipment 1100
Processor 1101 execute to complete the method for drafting of above-mentioned transparent body refracting interface line.
The preferred embodiment of the disclosure is described in detail in conjunction with attached drawing above, still, the disclosure is not limited to above-mentioned reality
The detail in mode is applied, in the range of the technology design of the disclosure, a variety of letters can be carried out to the technical solution of the disclosure
Monotropic type, these simple variants belong to the protection scope of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case where shield, it can be combined in any appropriate way.In order to avoid unnecessary repetition, the disclosure to it is various can
No further explanation will be given for the combination of energy.
In addition, any combination can also be carried out between a variety of different embodiments of the disclosure, as long as it is without prejudice to originally
Disclosed thought equally should be considered as disclosure disclosure of that.